Mercurial > hg > th-libs
diff 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 |
line wrap: on
line diff
--- a/th_config.h Wed Dec 25 11:05:15 2019 +0200 +++ b/th_config.h Wed Dec 25 11:42:43 2019 +0200 @@ -57,12 +57,12 @@ /* Functions */ -int th_cfg_read(th_ioctx *ctx, th_cfgitem_t *cfg); +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 */); void th_cfg_free(th_cfgitem_t *cfg); -int th_cfg_write(th_ioctx *ctx, const th_cfgitem_t *cfg); +int th_cfg_write(th_ioctx *fh, const th_cfgitem_t *cfg); -int th_cfg_add_section(th_cfgitem_t **cfg, const char *name, th_cfgitem_t *data); int th_cfg_add_comment(th_cfgitem_t **cfg, const char *comment); +int th_cfg_add_section(th_cfgitem_t **cfg, const char *name, th_cfgitem_t *sect); int th_cfg_add_int(th_cfgitem_t **cfg, const char *name, int *data, int defValue); int th_cfg_add_uint(th_cfgitem_t **cfg, const char *name, unsigned int *data, unsigned int defValue);