add comment about memory handling in list_configs
[project/uci.git] / uci.h
diff --git a/uci.h b/uci.h
index 2fbcb80..44f947f 100644 (file)
--- a/uci.h
+++ b/uci.h
@@ -228,6 +228,8 @@ extern int uci_commit(struct uci_context *ctx, struct uci_package **p, bool over
 /**
  * uci_list_configs: List available uci config files
  * @ctx: uci context
+ *
+ * caller is responsible for freeing the allocated memory behind list
  */
 extern int uci_list_configs(struct uci_context *ctx, char ***list);
 
@@ -299,6 +301,7 @@ struct uci_element
 struct uci_backend
 {
        const char *name;
+       char **(*list_configs)(struct uci_context *ctx);
        struct uci_package *(*load)(struct uci_context *ctx, const char *name);
        void (*commit)(struct uci_context *ctx, struct uci_package **p, bool overwrite);
 };