projects
/
project
/
uci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a8436ca
)
add ucimap_free_section to the api
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 4 Sep 2009 00:57:43 +0000
(
02:57
+0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 4 Sep 2009 00:57:43 +0000
(
02:57
+0200)
ucimap.c
patch
|
blob
|
history
ucimap.h
patch
|
blob
|
history
diff --git
a/ucimap.c
b/ucimap.c
index
7478b70
..
5751156
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;
diff --git
a/ucimap.h
b/ucimap.h
index
4f80111
..
fd40865
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