add new command del_list
[project/uci.git] / uci.h
diff --git a/uci.h b/uci.h
index 6d13ea6c5f5d0ba2696ae8352dd5c08c5c7eab48..68b53f5ecc36e79e0fafbb97ad74e5d6dc31ed5e 100644 (file)
--- a/uci.h
+++ b/uci.h
@@ -187,6 +187,14 @@ extern int uci_set(struct uci_context *ctx, struct uci_ptr *ptr);
  */
 extern int uci_add_list(struct uci_context *ctx, struct uci_ptr *ptr);
 
+/**
+ * uci_del_list: Remove a string from an element list
+ * @ctx: uci context
+ * @ptr: uci pointer (with value)
+ *
+ */
+extern int uci_del_list(struct uci_context *ctx, struct uci_ptr *ptr);
+
 /**
  * uci_reorder: Reposition a section
  * @ctx: uci context
@@ -489,6 +497,7 @@ enum uci_command {
        UCI_CMD_RENAME,
        UCI_CMD_REORDER,
        UCI_CMD_LIST_ADD,
+       UCI_CMD_LIST_DEL,
 };
 
 struct uci_delta