X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=uci.h;h=d7fd1e2f5fbd543919a6fd949f070cff26894e04;hb=cac9b1d765338466c1c77719c4119c565689b4c4;hp=16c69665f6eabfe5bb6e6f2296b1ce1fbca6eeb6;hpb=976e6db54ee86c7198e68b48cea2f9f1db9c3425;p=project%2Fuci.git diff --git a/uci.h b/uci.h index 16c6966..d7fd1e2 100644 --- a/uci.h +++ b/uci.h @@ -319,6 +319,10 @@ enum uci_type { UCI_TYPE_BACKEND = 5, }; +enum uci_option_type { + UCI_TYPE_STRING = 0, +}; + enum uci_flags { UCI_FLAG_STRICT = (1 << 0), /* strict mode for the parser */ UCI_FLAG_PERROR = (1 << 1), /* print parser error messages */ @@ -404,7 +408,11 @@ struct uci_option { struct uci_element e; struct uci_section *section; - char *value; + enum uci_option_type type; + union { + struct uci_element *list; + char *string; + } v; }; enum uci_command {