1 #ifndef __NETIFD_CONFIG_H
2 #define __NETIFD_CONFIG_H
4 #include <libubox/blobmsg.h>
6 enum config_param_type {
7 CONFIG_PARAM_TYPE_SIMPLE,
8 CONFIG_PARAM_TYPE_LIST,
9 CONFIG_PARAM_TYPE_SECTION,
12 union config_param_info {
13 enum blobmsg_type type;
14 struct config_params *section;
17 struct config_param_list {
20 const struct blobmsg_policy *params;
21 const union config_param_info *info;
23 const struct config_param_list *next[];
27 struct blob_attr *data;
31 void config_set_state(struct config_state *state, const struct blob_attr *attr);