Mercurial > hg > th-libs
comparison th_config.c @ 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 | 97833753b599 |
comparison
equal
deleted
inserted
replaced
776:680324e43852 | 777:484853471eaf |
---|---|
77 | 77 |
78 return THERR_OK; | 78 return THERR_OK; |
79 } | 79 } |
80 | 80 |
81 | 81 |
82 int th_cfg_add_hexvalue(th_cfgitem_t **cfg, const char *name, | 82 int th_cfg_add_hex_triplet(th_cfgitem_t **cfg, const char *name, |
83 unsigned int *itemData, unsigned int defValue) | 83 unsigned int *itemData, unsigned int defValue) |
84 { | 84 { |
85 th_cfgitem_t *node = th_cfg_add(cfg, name, CFG_ITEM_HEX_TRIPLET, (void *) itemData); | 85 th_cfgitem_t *node = th_cfg_add(cfg, name, CFG_ITEM_HEX_TRIPLET, (void *) itemData); |
86 if (node == NULL) | 86 if (node == NULL) |
87 return THERR_MALLOC; | 87 return THERR_MALLOC; |