s/release_device/device_release/
[project/netifd.git] / config.h
1 #ifndef __NETIFD_CONFIG_H
2 #define __NETIFD_CONFIG_H
3
4 #include <libubox/blobmsg.h>
5
6 enum config_param_type {
7         CONFIG_PARAM_TYPE_SIMPLE,
8         CONFIG_PARAM_TYPE_LIST,
9         CONFIG_PARAM_TYPE_SECTION,
10 };
11
12 union config_param_info {
13         enum blobmsg_type type;
14         struct config_params *section;
15 };
16
17 struct config_param_list {
18         const struct config_param_list *next;
19         int n_params;
20         const struct blobmsg_policy *params;
21         const union config_param_info *info;
22 };
23
24 #endif