cw_Cfg_t is now a structure instead of typedef's mavl

This commit is contained in:
2022-08-20 22:03:06 +02:00
parent ee16f3794f
commit aa3d83d8a4
13 changed files with 79 additions and 50 deletions

View File

@ -7,7 +7,13 @@
#define CW_CFG_MAX_KEY_LEN 1024
typedef struct mavl cw_Cfg_t;
struct cw_Cfg {
struct mavl * cfg;
const char *name;
int dbg_level;
};
typedef struct cw_Cfg cw_Cfg_t;
cw_Cfg_t * cw_cfg_create();
int cw_cfg_set(cw_Cfg_t *cfg,const char *key, const char *val);