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 6b6562ccf0b67a2635872e0baf6b3d4c382dfb45..2a9cc282af864a5dab12d89320e3317741995022 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 a106db24bf36ba2c26afc5e70b4bc3462e954283..66cee8463b812fd8d82c5b141cac2700331ad515 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 e12d3569dfe0b4ada12ec8cb4139d0a50eab8841..8be8727906ea5636d567b9c9f56e79d9801aa788 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 87a7cb3a195b92a45eecbc92b69813a4c3d57931..6bd8761ee7d2fdb36f14b3137bbf550d78091c77 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef __NETIFD_INTERFACE_H
 #define __NETIFD_INTERFACE_H
 
+#include "device.h"
+
 struct interface;
 struct interface_proto_state;
 
index fabf4d9d21a4f419d131f263f0d8b87806ef655f..17b839b722fb133abd3963ca20856a6e98012d88 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 a345b35909dcda6105d354e665642324bc9e02a1..287eae5f95fe2f807e54a26b51b192e786f72323 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 e143d8b1fd01e13244170075b5a168f88db0127c..aadb64fc0b0f4a09727c6c84058704e1d67a7a35 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 e5df1fb1b9fe3c327e9660a2b1c9998618e52c30..72cf0e54737f8ff972cc9bf4f1448da63ee6192e 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;