comparison th_config.h @ 604:e789accfca87

Comment cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 16 Jan 2020 00:49:42 +0200
parents 3a852e9f70a6
children 6d99150a8f89
comparison
equal deleted inserted replaced
603:be957142ab37 604:e789accfca87
14 14
15 #ifdef __cplusplus 15 #ifdef __cplusplus
16 extern "C" { 16 extern "C" {
17 #endif 17 #endif
18 18
19 /* Definitions 19 //
20 */ 20 // Definitions
21 //
21 enum ITEM_TYPE 22 enum ITEM_TYPE
22 { 23 {
23 ITEM_SECTION = 1, 24 ITEM_SECTION = 1,
24 ITEM_COMMENT, 25 ITEM_COMMENT,
25 26
55 struct _th_cfgitem_t *section; 56 struct _th_cfgitem_t *section;
56 } v; 57 } v;
57 } th_cfgitem_t; 58 } th_cfgitem_t;
58 59
59 60
60 /* Functions 61 //
61 */ 62 // Functions
63 //
62 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 */); 64 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 */);
63 void th_cfg_free(th_cfgitem_t *cfg); 65 void th_cfg_free(th_cfgitem_t *cfg);
64 int th_cfg_write(th_ioctx *fh, const th_cfgitem_t *cfg); 66 int th_cfg_write(th_ioctx *fh, const th_cfgitem_t *cfg);
65 67
66 int th_cfg_add_comment(th_cfgitem_t **cfg, const char *comment); 68 int th_cfg_add_comment(th_cfgitem_t **cfg, const char *comment);