Mercurial > hg > th-libs
diff th_config.h @ 170:8e69e07e5aac
Cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 19 Feb 2015 15:57:38 +0200 |
parents | 23a79bd6c9d6 |
children | eb2c073d93b3 |
line wrap: on
line diff
--- a/th_config.h Wed Feb 18 21:13:52 2015 +0200 +++ b/th_config.h Thu Feb 19 15:57:38 2015 +0200 @@ -61,12 +61,13 @@ int th_cfg_add_section(th_cfgitem_t **cfg, const char *name, th_cfgitem_t *data); int th_cfg_add_comment(th_cfgitem_t **cfg, const char *comment); -int th_cfg_add_int(th_cfgitem_t **cfg, const char *name, int *data, int itemDef); -int th_cfg_add_uint(th_cfgitem_t **cfg, const char *name, unsigned int *data, unsigned int itemDef); -int th_cfg_add_string(th_cfgitem_t **cfg, const char *name, char **data, char *itemDef); -int th_cfg_add_bool(th_cfgitem_t **cfg, const char *name, BOOL *data, BOOL itemDef); -int th_cfg_add_float(th_cfgitem_t **cfg, const char *name, float *data, float itemDef); -int th_cfg_add_hexvalue(th_cfgitem_t **cfg, const char *name, int *data, int itemDef); +int th_cfg_add_int(th_cfgitem_t **cfg, const char *name, int *data, int defValue); +int th_cfg_add_uint(th_cfgitem_t **cfg, const char *name, unsigned int *data, unsigned int defValue); +int th_cfg_add_float(th_cfgitem_t **cfg, const char *name, float *data, float defValue); +int th_cfg_add_string(th_cfgitem_t **cfg, const char *name, char **data, char *defValue); +int th_cfg_add_bool(th_cfgitem_t **cfg, const char *name, BOOL *data, BOOL defValue); +int th_cfg_add_float(th_cfgitem_t **cfg, const char *name, float *data, float defValue); +int th_cfg_add_hexvalue(th_cfgitem_t **cfg, const char *name, int *data, int defValue); int th_cfg_add_string_list(th_cfgitem_t **cfg, const char *name, th_llist_t **list); th_cfgitem_t *th_cfg_find(th_cfgitem_t *cfg, const char *section, const char *name, const int type);