Mercurial > hg > th-libs
comparison th_config.h @ 771:c17eadc60c3d
Rename th_ioctx struct to th_ioctx_t, for consistency. Breaks API.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 20 Feb 2023 23:33:45 +0200 |
parents | 31bc1ed07cf5 |
children | 4744e64ffa3a |
comparison
equal
deleted
inserted
replaced
770:79f888e4616f | 771:c17eadc60c3d |
---|---|
60 | 60 |
61 | 61 |
62 // | 62 // |
63 // Functions | 63 // Functions |
64 // | 64 // |
65 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 */); | 65 int th_cfg_read(th_ioctx_t *fh, th_cfgitem_t *cfg /*, TODO XXX const int flags (for controlling things like "error out on unknown items or ignore" etc */); |
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 *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 | 71 |
72 int th_cfg_add_int(th_cfgitem_t **cfg, const char *name, int *data, int defValue); | 72 int th_cfg_add_int(th_cfgitem_t **cfg, const char *name, int *data, int defValue); |