X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=uci.h;h=68b53f5ecc36e79e0fafbb97ad74e5d6dc31ed5e;hp=6d13ea6c5f5d0ba2696ae8352dd5c08c5c7eab48;hb=ec8cbbbe0f20e67cbd3bd471b9ac55ceacaef7b8;hpb=2e90d2637abcbea12f5f4070be7a158fb4637604;ds=sidebyside diff --git a/uci.h b/uci.h index 6d13ea6..68b53f5 100644 --- a/uci.h +++ b/uci.h @@ -188,6 +188,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 * @s: uci section to reposition @@ -489,6 +497,7 @@ enum uci_command { UCI_CMD_RENAME, UCI_CMD_REORDER, UCI_CMD_LIST_ADD, + UCI_CMD_LIST_DEL, }; struct uci_delta