only use -g3 with -DDEBUG
[project/netifd.git] / netifd.h
index 17b839b..be29b3c 100644 (file)
--- a/netifd.h
+++ b/netifd.h
@@ -7,23 +7,16 @@
 #include <stdbool.h>
 #include <stdio.h>
 
-#include <libubox/list.h>
 #include <libubox/uloop.h>
 
 #include <libubus.h>
-#include <uci.h>
 
-#ifdef DEBUG
-#define DPRINTF(format, ...) fprintf(stderr, "%s(%d): " format, __func__, __LINE__, ## __VA_ARGS__)
-#else
-#define DPRINTF(...) do {} while(0)
-#endif
+#include "utils.h"
 
 struct device;
 struct interface;
 
-extern struct uci_context *uci_ctx;
-
-void config_init_interfaces(const char *name);
+extern const char *main_path;
+void netifd_restart(void);
 
 #endif