From: Felix Fietkau Date: Fri, 4 Sep 2009 00:57:43 +0000 (+0200) Subject: add ucimap_free_section to the api X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=2e1e88ddeefcf01d7e1d06d9abd7ffb8222413a6;p=uci.git add ucimap_free_section to the api --- diff --git a/ucimap.c b/ucimap.c index 7478b70..5751156 100644 --- a/ucimap.c +++ b/ucimap.c @@ -136,7 +136,7 @@ ucimap_add_alloc(struct ucimap_section_data *sd, void *ptr) a->data.ptr = ptr; } -static void +void ucimap_free_section(struct uci_map *map, struct ucimap_section_data *sd) { void *section; diff --git a/ucimap.h b/ucimap.h index 4f80111..fd40865 100644 --- a/ucimap.h +++ b/ucimap.h @@ -205,5 +205,6 @@ extern void ucimap_set_changed(struct ucimap_section_data *sd, void *field); extern int ucimap_store_section(struct uci_map *map, struct uci_package *p, struct ucimap_section_data *sd); extern void ucimap_parse(struct uci_map *map, struct uci_package *pkg); extern int ucimap_parse_section(struct uci_map *map, struct uci_sectionmap *sm, struct ucimap_section_data *sd, struct uci_section *s); +extern void ucimap_free_section(struct uci_map *map, struct ucimap_section_data *sd); #endif