X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=ucimap.h;h=921ab4ecf954ce62e0c33a43e2343825b12eec73;hp=4254b1e568463a9221be80a620a2f885d8f9e4ac;hb=ceaa2fbb3ce565b8d952179f2ac4cfe9190580ef;hpb=3fa4e980d9dd281ad556069e09d17ba64ef4156d;ds=sidebyside diff --git a/ucimap.h b/ucimap.h index 4254b1e..921ab4e 100644 --- a/ucimap.h +++ b/ucimap.h @@ -109,6 +109,10 @@ struct uci_sectionmap { /* 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);