Mercurial > hg > th-libs
comparison th_config.h @ 781:4cc514343376
Rename th_cfg_find() to th_cfg_item_find().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 04 Jul 2023 01:24:38 +0300 |
parents | 847d1ebe5b81 |
children |
comparison
equal
deleted
inserted
replaced
780:847d1ebe5b81 | 781:4cc514343376 |
---|---|
66 void th_cfg_free(th_cfgitem_t *cfg, void (*freefunc)(th_cfgitem_t *)); | 66 void th_cfg_free(th_cfgitem_t *cfg, void (*freefunc)(th_cfgitem_t *)); |
67 int th_cfg_write(th_ioctx_t *fh, const th_cfgitem_t *cfg); | 67 int th_cfg_write(th_ioctx_t *fh, const th_cfgitem_t *cfg); |
68 | 68 |
69 int th_cfg_add_comment(th_cfgitem_t **cfg, const char *comment); | 69 int th_cfg_add_comment(th_cfgitem_t **cfg, const char *comment); |
70 int th_cfg_add_section(th_cfgitem_t **cfg, const char *name, th_cfgitem_t *sect); | 70 int th_cfg_add_section(th_cfgitem_t **cfg, const char *name, th_cfgitem_t *sect); |
71 th_cfgitem_t * th_cfg_item_find(th_cfgitem_t *cfg, const char *section, const char *name, const int type); | |
71 | 72 |
72 int th_cfg_add_int(th_cfgitem_t **cfg, const char *name, int *data, int defValue); | 73 int th_cfg_add_int(th_cfgitem_t **cfg, const char *name, int *data, int defValue); |
73 int th_cfg_add_uint(th_cfgitem_t **cfg, const char *name, unsigned int *data, unsigned int defValue); | 74 int th_cfg_add_uint(th_cfgitem_t **cfg, const char *name, unsigned int *data, unsigned int defValue); |
74 int th_cfg_add_float(th_cfgitem_t **cfg, const char *name, float *data, float defValue); | 75 int th_cfg_add_float(th_cfgitem_t **cfg, const char *name, float *data, float defValue); |
75 int th_cfg_add_string(th_cfgitem_t **cfg, const char *name, char **data, char *defValue); | 76 int th_cfg_add_string(th_cfgitem_t **cfg, const char *name, char **data, char *defValue); |
76 int th_cfg_add_bool(th_cfgitem_t **cfg, const char *name, bool *data, bool defValue); | 77 int th_cfg_add_bool(th_cfgitem_t **cfg, const char *name, bool *data, bool defValue); |
77 int th_cfg_add_float(th_cfgitem_t **cfg, const char *name, float *data, float defValue); | 78 int th_cfg_add_float(th_cfgitem_t **cfg, const char *name, float *data, float defValue); |
78 int th_cfg_add_hex_triplet(th_cfgitem_t **cfg, const char *name, unsigned int *data, unsigned int defValue); | 79 int th_cfg_add_hex_triplet(th_cfgitem_t **cfg, const char *name, unsigned int *data, unsigned int defValue); |
79 int th_cfg_add_string_list(th_cfgitem_t **cfg, const char *name, th_llist_t **list); | 80 int th_cfg_add_string_list(th_cfgitem_t **cfg, const char *name, th_llist_t **list); |
80 | 81 |
81 th_cfgitem_t *th_cfg_find(th_cfgitem_t *cfg, const char *section, const char *name, const int type); | |
82 | 82 |
83 #ifdef __cplusplus | 83 #ifdef __cplusplus |
84 } | 84 } |
85 #endif | 85 #endif |
86 #endif // TH_CONFIG_H | 86 #endif // TH_CONFIG_H |