diff options
Diffstat (limited to 'src/common/conf.h')
-rw-r--r-- | src/common/conf.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/common/conf.h b/src/common/conf.h index 19aa73c2d..8bec2704f 100644 --- a/src/common/conf.h +++ b/src/common/conf.h @@ -105,6 +105,18 @@ struct libconfig_interface { void (*setting_copy_elem) (config_setting_t *parent, const config_setting_t *src); void (*setting_copy_aggregate) (config_setting_t *parent, const config_setting_t *src); int (*setting_copy) (config_setting_t *parent, const config_setting_t *src); + /* Functions to get other types */ + bool (*setting_get_bool_real) (const config_setting_t *setting); + uint32 (*setting_get_uint32) (const config_setting_t *setting); + uint16 (*setting_get_uint16) (const config_setting_t *setting); + int16 (*setting_get_int16) (const config_setting_t *setting); + + int (*setting_lookup_bool_real) (const config_setting_t *setting, const char *name, bool *value); + int (*setting_lookup_uint32) (const config_setting_t *setting, const char *name, uint32 *value); + int (*setting_lookup_uint16) (const config_setting_t *setting, const char *name, uint16 *value); + int (*setting_lookup_int16) (const config_setting_t *setting, const char *name, int16 *value); + int (*setting_lookup_mutable_string) (const config_setting_t *setting, const char *name, char *out, size_t out_size); + int (*lookup_mutable_string) (const config_t *config, const char *name, char *out, size_t out_size); }; #ifdef HERCULES_CORE |