ソースを参照

ncd: move NCDIfConfig to extra, as it's not a core part of the interpreter

ambrop7 13 年 前
コミット
86000dd3d0

+ 1 - 1
ncd/CMakeLists.txt

@@ -34,7 +34,7 @@ if (NOT EMSCRIPTEN)
     target_link_libraries(ncdrequest base system ncdvalgenerator ncdvalparser)
 
     list(APPEND NCD_ADDITIONAL_SOURCES
-        NCDIfConfig.c
+        extra/NCDIfConfig.c
         extra/build_cmdline.c
         modules/command_template.c
         modules/event_template.c

+ 1 - 1
ncd/NCDIfConfig.c → ncd/extra/NCDIfConfig.c

@@ -45,7 +45,7 @@
 #include <misc/debug.h>
 #include <base/BLog.h>
 
-#include <ncd/NCDIfConfig.h>
+#include "NCDIfConfig.h"
 
 #include <generated/blog_channel_NCDIfConfig.h>
 

+ 0 - 0
ncd/NCDIfConfig.h → ncd/extra/NCDIfConfig.h


+ 1 - 1
ncd/modules/net_backend_badvpn.c

@@ -38,7 +38,7 @@
 
 #include <misc/cmdline.h>
 #include <ncd/NCDModule.h>
-#include <ncd/NCDIfConfig.h>
+#include <ncd/extra/NCDIfConfig.h>
 
 #include <generated/blog_channel_ncd_net_backend_badvpn.h>
 

+ 1 - 1
ncd/modules/net_backend_waitdevice.c

@@ -41,7 +41,7 @@
 
 #include <misc/parse_number.h>
 #include <ncd/NCDModule.h>
-#include <ncd/NCDIfConfig.h>
+#include <ncd/extra/NCDIfConfig.h>
 
 #include <generated/blog_channel_ncd_net_backend_waitdevice.h>
 

+ 1 - 1
ncd/modules/net_backend_waitlink.c

@@ -38,7 +38,7 @@
 
 #include <misc/get_iface_info.h>
 #include <ncd/NCDModule.h>
-#include <ncd/NCDIfConfig.h>
+#include <ncd/extra/NCDIfConfig.h>
 #include <ncd/extra/NCDInterfaceMonitor.h>
 
 #include <generated/blog_channel_ncd_net_backend_waitlink.h>

+ 1 - 1
ncd/modules/net_dns.c

@@ -43,7 +43,7 @@
 #include <misc/compare.h>
 #include <structure/LinkedList1.h>
 #include <ncd/NCDModule.h>
-#include <ncd/NCDIfConfig.h>
+#include <ncd/extra/NCDIfConfig.h>
 #include <ncd/extra/value_utils.h>
 
 #include <generated/blog_channel_ncd_net_dns.h>

+ 1 - 1
ncd/modules/net_ipv4_addr.c

@@ -44,7 +44,7 @@
 #include <string.h>
 
 #include <ncd/NCDModule.h>
-#include <ncd/NCDIfConfig.h>
+#include <ncd/extra/NCDIfConfig.h>
 
 #include <generated/blog_channel_ncd_net_ipv4_addr.h>
 

+ 1 - 1
ncd/modules/net_ipv4_route.c

@@ -48,7 +48,7 @@
 
 #include <misc/debug.h>
 #include <ncd/NCDModule.h>
-#include <ncd/NCDIfConfig.h>
+#include <ncd/extra/NCDIfConfig.h>
 #include <ncd/extra/value_utils.h>
 
 #include <generated/blog_channel_ncd_net_ipv4_route.h>

+ 1 - 1
ncd/modules/net_ipv6_addr.c

@@ -44,7 +44,7 @@
 #include <string.h>
 
 #include <ncd/NCDModule.h>
-#include <ncd/NCDIfConfig.h>
+#include <ncd/extra/NCDIfConfig.h>
 
 #include <generated/blog_channel_ncd_net_ipv6_addr.h>
 

+ 1 - 1
ncd/modules/net_ipv6_route.c

@@ -50,7 +50,7 @@
 
 #include <misc/debug.h>
 #include <ncd/NCDModule.h>
-#include <ncd/NCDIfConfig.h>
+#include <ncd/extra/NCDIfConfig.h>
 #include <ncd/extra/value_utils.h>
 
 #include <generated/blog_channel_ncd_net_ipv6_route.h>

+ 1 - 1
ncd/modules/net_up.c

@@ -38,7 +38,7 @@
 #include <stdlib.h>
 
 #include <ncd/NCDModule.h>
-#include <ncd/NCDIfConfig.h>
+#include <ncd/extra/NCDIfConfig.h>
 
 #include <generated/blog_channel_ncd_net_up.h>