ucimap: add new UCIMAP_LIST_AUTO for automatically converting multiple list items...
[project/uci.git] / ucimap-example.c
index 157c32f583020ff361ec25200f10c1ce222fa098..affb0705ebaea1ab64fa09d98dc5f02d4d4eee3a 100644 (file)
@@ -170,7 +170,7 @@ static struct my_optmap network_interface_options[] = {
        {
                .map = {
                        UCIMAP_OPTION(struct uci_network, aliases),
-                       .type = UCIMAP_LIST | UCIMAP_SECTION,
+                       .type = UCIMAP_LIST | UCIMAP_SECTION | UCIMAP_LIST_AUTO,
                        .data.sm = &network_alias
                }
        }