X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=uci.h;h=4fa0b6a44a7b74a846d48209bcdbca6d448ca98e;hb=82db7b24855fbf5815d059c7cf6ab5f3f4ee44f0;hp=95d9c0a1ff464a94a4f696130390efe86fc616b8;hpb=6ce771b1095c220f849e70cdcbf23bd09f7fe7d5;p=project%2Fuci.git diff --git a/uci.h b/uci.h index 95d9c0a..4fa0b6a 100644 --- a/uci.h +++ b/uci.h @@ -323,6 +323,15 @@ int uci_load_plugin(struct uci_context *ctx, const char *filename); */ int uci_load_plugins(struct uci_context *ctx, const char *pattern); +/** + * uci_parse_ptr: parse a uci string into a uci_ptr + * @ctx: uci context + * @ptr: target data structure + * @str: string to parse + * + * str is modified by this function + */ +int uci_parse_ptr(struct uci_context *ctx, struct uci_ptr *ptr, char *str); /* UCI data structures */ enum uci_type {