projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bring all interfaces down on restart
[project/netifd.git]
/
config.h
diff --git
a/config.h
b/config.h
index
83d7c25
..
5623a40
100644
(file)
--- a/
config.h
+++ b/
config.h
@@
-3,6
+3,8
@@
#include <libubox/blobmsg.h>
#include <libubox/blobmsg.h>
+extern bool config_init;
+
enum config_param_type {
CONFIG_PARAM_TYPE_SIMPLE,
CONFIG_PARAM_TYPE_LIST,
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[];
};
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
#endif