X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=uci.h;h=ac85105443a0b5fac31c23baca7bd6dfd17f4e24;hp=382e745f1d58d4f0f4db79df078e320d4719da55;hb=5faea6dcdf54d0ac085298b87c0799551bdcfdbd;hpb=80e2e58f4e4c0d8ff492281fa998d550a85b4d92 diff --git a/uci.h b/uci.h index 382e745..ac85105 100644 --- 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); @@ -339,7 +341,7 @@ struct uci_package struct uci_element e; struct uci_list sections; struct uci_context *ctx; - bool confdir; + bool has_history; char *path; /* private: */ @@ -400,9 +402,6 @@ struct uci_history * @_type: config, section or option * @_ptr: pointer to the uci_list struct */ -#define element_to(type, ptr) \ - container_of(ptr, struct uci_ ## type, e) - #define list_to_element(ptr) \ container_of(ptr, struct uci_element, list)