# HG changeset patch # User Matti Hamalainen # Date 1688257197 -10800 # Node ID 484853471eaf0e80cecb0379b2d5475dde3a3d74 # Parent 680324e43852e30f4ef56aacf25eacf5f8313ea5 Rename th_cfg_add_hexvalue() to th_cfg_add_hex_triplet(). diff -r 680324e43852 -r 484853471eaf tests.c --- a/tests.c Sun Jul 02 00:43:59 2023 +0300 +++ b/tests.c Sun Jul 02 03:19:57 2023 +0300 @@ -520,7 +520,7 @@ th_cfg_add_string(§1, "a_string_setting", &v_str1, "v_str1"); th_cfg_add_comment(§1, "Hex triplet value setting"); - th_cfg_add_hexvalue(§1, "hexval", &v_uint1, 0x11223344); + th_cfg_add_hex_triplet(§1, "hexval", &v_uint1, 0x11223344); th_cfg_add_comment(§1, "A boolean value"); th_cfg_add_bool(§1, "boolval", &v_bool1, false); diff -r 680324e43852 -r 484853471eaf th_config.c --- a/th_config.c Sun Jul 02 00:43:59 2023 +0300 +++ b/th_config.c Sun Jul 02 03:19:57 2023 +0300 @@ -79,7 +79,7 @@ } -int th_cfg_add_hexvalue(th_cfgitem_t **cfg, const char *name, +int th_cfg_add_hex_triplet(th_cfgitem_t **cfg, const char *name, unsigned int *itemData, unsigned int defValue) { th_cfgitem_t *node = th_cfg_add(cfg, name, CFG_ITEM_HEX_TRIPLET, (void *) itemData); diff -r 680324e43852 -r 484853471eaf th_config.h --- a/th_config.h Sun Jul 02 00:43:59 2023 +0300 +++ b/th_config.h Sun Jul 02 03:19:57 2023 +0300 @@ -75,7 +75,7 @@ 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, unsigned int *data, unsigned int defValue); +int th_cfg_add_hex_triplet(th_cfgitem_t **cfg, const char *name, unsigned int *data, unsigned 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);