only use -g3 with -DDEBUG
[project/netifd.git] / config.h
index 83d7c25..5623a40 100644 (file)
--- a/config.h
+++ b/config.h
@@ -3,6 +3,8 @@
 
 #include <libubox/blobmsg.h>
 
+extern bool config_init;
+
 enum config_param_type {
        CONFIG_PARAM_TYPE_SIMPLE,
        CONFIG_PARAM_TYPE_LIST,
@@ -23,4 +25,12 @@ struct config_param_list {
        const struct config_param_list *next[];
 };
 
+struct config_state {
+       struct blob_attr *data;
+       unsigned int version;
+};
+
+void config_init_interfaces(const char *name);
+void config_set_state(struct config_state *state, const struct blob_attr *attr);
+
 #endif