path:
root/
tconf/
tconf.h (
plain)
blob: f622545661ba7e688fe091d28acc767ca554dce8
1
2
3
4
5
6
7
8
9
10
11
|
typedef int (*tconf_func_t)(char *key, void *arg);
typedef struct {
char *name;
enum {tconf_int, tconf_str, tconf_bool, tconf_func } type;
void *addr;
} tconf_t;
#define TCONF_DISALLOW_UNKNOWN (1 << 0)
int tconf(char *file, tconf_t *tconf, int tclen, int opt);
|