mess822x 1.23
mess822x
Loading...
Searching...
No Matches
config.h
Go to the documentation of this file.
1#ifndef CONFIG_H
2#define CONFIG_H
3
4#include "stralloc.h"
5
6typedef struct {
7 stralloc sa;
10
11#define CONFIG_STR {{0},0}
12
13#define config(c) ((c)->flagconf)
14#define config_data(c) (&((c)->sa))
15
16extern int config_default(config_str *,char *);
17extern int config_copy(config_str *,config_str *);
18extern int config_env(config_str *,char *);
19extern int config_readline(config_str *,char *);
20extern int config_readfile(config_str *,char *);
21
22#endif
int config_copy(config_str *, config_str *)
Definition: config.c:19
int config_readline(config_str *, char *)
Definition: config.c:57
int config_default(config_str *, char *)
Definition: config.c:10
int config_env(config_str *, char *)
Definition: config.c:28
int config_readfile(config_str *, char *)
Definition: config.c:84
stralloc sa
Definition: config.h:7
int flagconf
Definition: config.h:8