changeset 777:484853471eaf

Rename th_cfg_add_hexvalue() to th_cfg_add_hex_triplet().
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 02 Jul 2023 03:19:57 +0300
parents 680324e43852
children ac9895c6b056
files tests.c th_config.c th_config.h
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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(&sect1, "a_string_setting", &v_str1, "v_str1");
 
     th_cfg_add_comment(&sect1, "Hex triplet value setting");
-    th_cfg_add_hexvalue(&sect1, "hexval", &v_uint1, 0x11223344);
+    th_cfg_add_hex_triplet(&sect1, "hexval", &v_uint1, 0x11223344);
 
     th_cfg_add_comment(&sect1, "A boolean value");
     th_cfg_add_bool(&sect1, "boolval", &v_bool1, false);
--- 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);
--- 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);