-enum {
- SDEV_NAME,
- SDEV_TYPE,
- SDEV_MTU,
- SDEV_MACADDR,
- SDEV_TXQUEUELEN,
- __SDEV_MAX,
-};
-
-static const struct uci_parse_option dev_opts[__SDEV_MAX] = {
- [SDEV_NAME] = { "name", UCI_TYPE_STRING },
- [SDEV_TYPE] = { "type", UCI_TYPE_STRING },
- [SDEV_MTU] = { "mtu", UCI_TYPE_STRING },
- [SDEV_MACADDR] = { "macaddr", UCI_TYPE_STRING },
- [SDEV_TXQUEUELEN] = { "txqueuelen", UCI_TYPE_STRING },
-};
-
-static bool
-add_int_option(struct uci_option *o, unsigned int *dest)
+static void uci_to_blob(struct blob_buf *b, struct uci_section *s,
+ const struct config_param_list *p)