From 2e1e88ddeefcf01d7e1d06d9abd7ffb8222413a6 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 4 Sep 2009 02:57:43 +0200 Subject: [PATCH] add ucimap_free_section to the api --- ucimap.c | 2 +- ucimap.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- 2.11.0