rework includes
authorFelix Fietkau <nbd@openwrt.org>
Tue, 29 Mar 2011 19:12:07 +0000 (21:12 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 29 Mar 2011 19:12:07 +0000 (21:12 +0200)
bridge.c
config.c
interface.c
interface.h
netifd.h
proto.c
system-dummy.c
ubus.c

index 6b6562c..2a9cc28 100644 (file)
--- a/bridge.c
+++ b/bridge.c
@@ -5,6 +5,8 @@
 #include <errno.h>
 
 #include "netifd.h"
+#include "device.h"
+#include "interface.h"
 #include "system.h"
 
 struct bridge_state {
index a106db2..66cee84 100644 (file)
--- a/config.c
+++ b/config.c
@@ -3,6 +3,7 @@
 #include <stdio.h>
 
 #include "netifd.h"
+#include "interface.h"
 
 struct uci_context *uci_ctx;
 
index e12d356..8be8727 100644 (file)
@@ -3,6 +3,8 @@
 #include <stdio.h>
 
 #include "netifd.h"
+#include "device.h"
+#include "interface.h"
 #include "proto.h"
 #include "ubus.h"
 
index 87a7cb3..6bd8761 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef __NETIFD_INTERFACE_H
 #define __NETIFD_INTERFACE_H
 
+#include "device.h"
+
 struct interface;
 struct interface_proto_state;
 
index fabf4d9..17b839b 100644 (file)
--- a/netifd.h
+++ b/netifd.h
 #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);
diff --git a/proto.c b/proto.c
index a345b35..287eae5 100644 (file)
--- a/proto.c
+++ b/proto.c
@@ -3,6 +3,7 @@
 #include <stdio.h>
 
 #include "netifd.h"
+#include "interface.h"
 #include "proto.h"
 
 static void
index e143d8b..aadb64f 100644 (file)
@@ -2,6 +2,7 @@
 #include <string.h>
 
 #include "netifd.h"
+#include "device.h"
 
 int system_bridge_addbr(struct device *bridge)
 {
diff --git a/ubus.c b/ubus.c
index e5df1fb..72cf0e5 100644 (file)
--- a/ubus.c
+++ b/ubus.c
@@ -1,6 +1,7 @@
 #include <string.h>
 
 #include "netifd.h"
+#include "interface.h"
 #include "ubus.h"
 
 static struct ubus_context *ctx = NULL;