diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-03-29 21:12:07 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-03-29 21:12:07 +0200 |
commit | aa76c9ee78146f97512f96524d3abb94210040a5 (patch) | |
tree | 03084f3b49c093d0abfa1e81eb913942762f2203 | |
parent | c986fc7131d360923908546deab26717a839400d (diff) |
rework includes
-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; |