projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ucimap: allow api users to take over allocation of section data structures
[project/uci.git]
/
ucimap.h
diff --git
a/ucimap.h
b/ucimap.h
index
4254b1e
..
921ab4e
100644
(file)
--- a/
ucimap.h
+++ b/
ucimap.h
@@
-109,6
+109,10
@@
struct uci_sectionmap {
/* sectionmap offset */
unsigned int smap_offset;
/* sectionmap offset */
unsigned int smap_offset;
+ /* allocate a new data structure and return a pointer to the section map data */
+ struct ucimap_section_data *(*alloc)(struct uci_map *map,
+ struct uci_sectionmap *sm, struct uci_section *s);
+
/* give the caller time to initialize the preallocated struct */
int (*init)(struct uci_map *map, void *section, struct uci_section *s);
/* give the caller time to initialize the preallocated struct */
int (*init)(struct uci_map *map, void *section, struct uci_section *s);