-#define OPTMAP_OPTION(_maptype, _type, _field, ...) \
- { \
- .type = _maptype, \
- .name = #_field, \
- .offset = offsetof(_type, _field), \
- __VA_ARGS__ \
- }
-
-struct uci_sectmap;
+#define UCIMAP_OPTION(_type, _field) \
+ .type = UCIMAP_CUSTOM, \
+ .name = #_field, \
+ .offset = offsetof(_type, _field)
+
+
+#define UCIMAP_SECTION(_name, _field) \
+ .alloc_len = sizeof(_name), \
+ .smap_offset = offsetof(_name, _field)
+
+struct uci_sectionmap;