|
|
@@ -10,7 +10,7 @@ |
|
|
|
typedef struct { |
|
|
|
void* serialize; |
|
|
|
void* deserialize; |
|
|
|
} INI_ConfigSerializerPair; |
|
|
|
} INI_ConfigTransformer; |
|
|
|
|
|
|
|
struct INI_ConfigItem; |
|
|
|
|
|
|
@@ -38,7 +38,7 @@ typedef struct INI_ConfigItem { |
|
|
|
const char* cmdline_option; |
|
|
|
const void* default_value; |
|
|
|
void* validator; |
|
|
|
INI_ConfigSerializerPair transformer; |
|
|
|
INI_ConfigTransformer transformer; |
|
|
|
void* dest; |
|
|
|
} INI_ConfigItem; |
|
|
|
|
|
|
@@ -131,7 +131,7 @@ void INI_ConfigOverrideString(INI_ConfigItem*, uint8_t, const char*[]); |
|
|
|
.override = INI_ConfigOverrideString, \ |
|
|
|
} |
|
|
|
|
|
|
|
#define INI_CONFIG_SERIALIZER_PAIR_NONE (INI_ConfigSerializerPair) { \ |
|
|
|
#define INI_CONFIG_TRANSFORMER_NONE (INI_ConfigTransformer) { \ |
|
|
|
.serialize = NULL, \ |
|
|
|
.deserialize = NULL, \ |
|
|
|
} |
|
|
@@ -148,7 +148,7 @@ void INI_ConfigOverrideString(INI_ConfigItem*, uint8_t, const char*[]); |
|
|
|
NULL, \ |
|
|
|
NULL, \ |
|
|
|
NULL, \ |
|
|
|
INI_CONFIG_SERIALIZER_PAIR_NONE, \ |
|
|
|
INI_CONFIG_TRANSFORMER_NONE, \ |
|
|
|
NULL, \ |
|
|
|
} |
|
|
|
|
|
|
|