From f2382b059a30759d41b248c6235f32de8c26047f Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 29 Jul 2011 14:09:05 +0200 Subject: implement uci-to-blobmsg conversion as an abstraction between uci and the rest of netifd --- config.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 config.h (limited to 'config.h') diff --git a/config.h b/config.h new file mode 100644 index 0000000..6403e1f --- /dev/null +++ b/config.h @@ -0,0 +1,24 @@ +#ifndef __NETIFD_CONFIG_H +#define __NETIFD_CONFIG_H + +#include + +enum config_param_type { + CONFIG_PARAM_TYPE_SIMPLE, + CONFIG_PARAM_TYPE_LIST, + CONFIG_PARAM_TYPE_SECTION, +}; + +union config_param_info { + enum blobmsg_type type; + struct config_params *section; +}; + +struct config_param_list { + const struct config_param_list *next; + int n_params; + const struct blobmsg_policy *params; + const union config_param_info *info; +}; + +#endif -- cgit v1.2.1