diff options
-rw-r--r-- | bridge.c | 2 | ||||
-rw-r--r-- | config.c | 1 | ||||
-rw-r--r-- | interface.c | 2 | ||||
-rw-r--r-- | interface.h | 2 | ||||
-rw-r--r-- | netifd.h | 6 | ||||
-rw-r--r-- | proto.c | 1 | ||||
-rw-r--r-- | system-dummy.c | 1 | ||||
-rw-r--r-- | ubus.c | 1 |
8 files changed, 13 insertions, 3 deletions
@@ -5,6 +5,8 @@ #include <errno.h> #include "netifd.h" +#include "device.h" +#include "interface.h" #include "system.h" struct bridge_state { @@ -3,6 +3,7 @@ #include <stdio.h> #include "netifd.h" +#include "interface.h" struct uci_context *uci_ctx; diff --git a/interface.c b/interface.c index e12d356..8be8727 100644 --- a/interface.c +++ b/interface.c @@ -3,6 +3,8 @@ #include <stdio.h> #include "netifd.h" +#include "device.h" +#include "interface.h" #include "proto.h" #include "ubus.h" diff --git a/interface.h b/interface.h index 87a7cb3..6bd8761 100644 --- a/interface.h +++ b/interface.h @@ -1,6 +1,8 @@ #ifndef __NETIFD_INTERFACE_H #define __NETIFD_INTERFACE_H +#include "device.h" + struct interface; struct interface_proto_state; @@ -13,15 +13,15 @@ #include <libubus.h> #include <uci.h> -#include "device.h" -#include "interface.h" - #ifdef DEBUG #define DPRINTF(format, ...) fprintf(stderr, "%s(%d): " format, __func__, __LINE__, ## __VA_ARGS__) #else #define DPRINTF(...) do {} while(0) #endif +struct device; +struct interface; + extern struct uci_context *uci_ctx; void config_init_interfaces(const char *name); @@ -3,6 +3,7 @@ #include <stdio.h> #include "netifd.h" +#include "interface.h" #include "proto.h" static void diff --git a/system-dummy.c b/system-dummy.c index e143d8b..aadb64f 100644 --- a/system-dummy.c +++ b/system-dummy.c @@ -2,6 +2,7 @@ #include <string.h> #include "netifd.h" +#include "device.h" int system_bridge_addbr(struct device *bridge) { @@ -1,6 +1,7 @@ #include <string.h> #include "netifd.h" +#include "interface.h" #include "ubus.h" static struct ubus_context *ctx = NULL; |