Mercurial > hg > th-libs
comparison th_config.h @ 499:836e16f27b34
Cleanup.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 25 Dec 2019 11:42:43 +0200 |
parents | 1dbd9259c3b8 |
children | 25fc4ab342d3 |
comparison
equal
deleted
inserted
replaced
498:1dbd9259c3b8 | 499:836e16f27b34 |
---|---|
55 } th_cfgitem_t; | 55 } th_cfgitem_t; |
56 | 56 |
57 | 57 |
58 /* Functions | 58 /* Functions |
59 */ | 59 */ |
60 int th_cfg_read(th_ioctx *ctx, th_cfgitem_t *cfg); | 60 int th_cfg_read(th_ioctx *fh, th_cfgitem_t *cfg /*, TODO XXX const int flags (for controlling things like "error out on unknown items or ignore" etc */); |
61 void th_cfg_free(th_cfgitem_t *cfg); | 61 void th_cfg_free(th_cfgitem_t *cfg); |
62 int th_cfg_write(th_ioctx *ctx, const th_cfgitem_t *cfg); | 62 int th_cfg_write(th_ioctx *fh, const th_cfgitem_t *cfg); |
63 | 63 |
64 int th_cfg_add_section(th_cfgitem_t **cfg, const char *name, th_cfgitem_t *data); | |
65 int th_cfg_add_comment(th_cfgitem_t **cfg, const char *comment); | 64 int th_cfg_add_comment(th_cfgitem_t **cfg, const char *comment); |
65 int th_cfg_add_section(th_cfgitem_t **cfg, const char *name, th_cfgitem_t *sect); | |
66 | 66 |
67 int th_cfg_add_int(th_cfgitem_t **cfg, const char *name, int *data, int defValue); | 67 int th_cfg_add_int(th_cfgitem_t **cfg, const char *name, int *data, int defValue); |
68 int th_cfg_add_uint(th_cfgitem_t **cfg, const char *name, unsigned int *data, unsigned int defValue); | 68 int th_cfg_add_uint(th_cfgitem_t **cfg, const char *name, unsigned int *data, unsigned int defValue); |
69 int th_cfg_add_float(th_cfgitem_t **cfg, const char *name, float *data, float defValue); | 69 int th_cfg_add_float(th_cfgitem_t **cfg, const char *name, float *data, float defValue); |
70 int th_cfg_add_string(th_cfgitem_t **cfg, const char *name, char **data, char *defValue); | 70 int th_cfg_add_string(th_cfgitem_t **cfg, const char *name, char **data, char *defValue); |