12 #ifndef TOR_LIB_CONF_CONFMACROS_H
13 #define TOR_LIB_CONF_CONFMACROS_H
22 #define END_OF_CONFIG_VARS \
23 { .member = { .name = NULL } DUMMY_CONF_TEST_MEMBERS }
35 #define CONFIG_VAR_ETYPE(structtype, varname, vartype, membername, \
39 .type = CONFIG_TYPE_ ## vartype, \
40 .offset = offsetof(structtype, membername), \
43 .initvalue = initval \
44 CONF_TEST_MEMBERS(structtype, vartype, membername) \
51 #define CONFIG_VAR_DEFN(structtype, varname, vartype, membername, \
55 .type = CONFIG_TYPE_EXTENDED, \
56 .type_def = &vartype ## _type_defn, \
57 .offset = offsetof(structtype, membername), \
60 .initvalue = initval \
61 CONF_TEST_MEMBERS(structtype, vartype, membername) \
67 #define CONFIG_VAR_OBSOLETE(varname) \
68 { .member = { .name = varname, .type = CONFIG_TYPE_OBSOLETE }, \
69 .flags = CFLG_GROUP_OBSOLETE \
Macro and type declarations for testing.