add some configuration code for interfaces, bind interfaces to regular devices
[project/netifd.git] / netifd.h
index fabf4d9..160ea3b 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;
+extern bool config_init;
 
 void config_init_interfaces(const char *name);