add ucimap_free_section to the api
authorFelix Fietkau <nbd@openwrt.org>
Fri, 4 Sep 2009 00:57:43 +0000 (02:57 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 4 Sep 2009 00:57:43 +0000 (02:57 +0200)
ucimap.c
ucimap.h

index 7478b70677a83ac78750687796356035b60aa547..57511566db30201ff7477915ac576f64c7f819e6 100644 (file)
--- 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;
index 4f80111622234e1331da5c32db12337216357d3d..fd408650025fa76787133530abe56051531cfa91 100644 (file)
--- 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