comparison th_config.h @ 496:8c837a33cfb6

Add argument names to some function prototypes.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 25 Dec 2019 08:38:11 +0200
parents 85fa3d333556
children 1dbd9259c3b8
comparison
equal deleted inserted replaced
495:30c57a9ea3be 496:8c837a33cfb6
20 */ 20 */
21 enum ITEM_TYPE 21 enum ITEM_TYPE
22 { 22 {
23 ITEM_SECTION = 1, 23 ITEM_SECTION = 1,
24 ITEM_COMMENT, 24 ITEM_COMMENT,
25
25 ITEM_STRING, 26 ITEM_STRING,
26 ITEM_INT, 27 ITEM_INT,
27 ITEM_UINT, 28 ITEM_UINT,
28 ITEM_BOOL, 29 ITEM_BOOL,
29 ITEM_FLOAT, 30 ITEM_FLOAT,
54 } th_cfgitem_t; 55 } th_cfgitem_t;
55 56
56 57
57 /* Functions 58 /* Functions
58 */ 59 */
59 int th_cfg_read(th_ioctx *, th_cfgitem_t *); 60 int th_cfg_read(th_ioctx *ctx, th_cfgitem_t *cfg);
60 void th_cfg_free(th_cfgitem_t *); 61 void th_cfg_free(th_cfgitem_t *cfg);
61 int th_cfg_write(th_ioctx *, const th_cfgitem_t *); 62 int th_cfg_write(th_ioctx *ctx, const th_cfgitem_t *cfg);
62 63
63 int th_cfg_add_section(th_cfgitem_t **cfg, const char *name, th_cfgitem_t *data); 64 int th_cfg_add_section(th_cfgitem_t **cfg, const char *name, th_cfgitem_t *data);
64 int th_cfg_add_comment(th_cfgitem_t **cfg, const char *comment); 65 int th_cfg_add_comment(th_cfgitem_t **cfg, const char *comment);
65 66
66 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);