add dynamically generated section names
[project/uci.git] / uci.h
diff --git a/uci.h b/uci.h
index 5e6baf6..c5594d8 100644 (file)
--- a/uci.h
+++ b/uci.h
@@ -89,7 +89,7 @@ extern int uci_cleanup(struct uci_context *ctx);
  *
  * @ctx: uci context
  */
-extern char **uci_list_configs(struct uci_context *ctx);
+extern char **uci_list_configs();
 
 /* UCI data structures */
 
@@ -125,6 +125,8 @@ struct uci_config
        struct uci_list sections;
        struct uci_context *ctx;
        char *name;
+       /* private: */
+       int n_section;
 };
 
 struct uci_section