added catgconf utility
[radsecproxy.git] / gconfig.h
1 #define CONF_STR 1
2 #define CONF_CBK 2
3 #define CONF_MSTR 3
4 #define CONF_BLN 4
5
6 struct gconffile {
7     char *path;
8     FILE *file;
9 };
10
11 void getconfigline(struct gconffile **cf, char *block, char **opt, char **val, int *conftype);
12 void getgenericconfig(struct gconffile **cf, char *block, ...);
13 FILE *pushgconffile(struct gconffile **cf, const char *path);
14 FILE *pushgconffiles(struct gconffile **cf, const char *path);
15 FILE *popgconffile(struct gconffile **cf);
16 struct gconffile *openconfigfile(const char *file);