gconfig support for long int
[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 #define CONF_LINT 5
6
7 struct gconffile {
8     char *path;
9     FILE *file;
10     const char *data;
11     size_t datapos;
12 };
13
14 int getconfigline(struct gconffile **cf, char *block, char **opt, char **val, int *conftype);
15 int getgenericconfig(struct gconffile **cf, char *block, ...);
16 int pushgconfdata(struct gconffile **cf, const char *data);
17 FILE *pushgconfpath(struct gconffile **cf, const char *path);
18 FILE *pushgconffile(struct gconffile **cf, FILE *file, const char *description);
19 FILE *pushgconfpaths(struct gconffile **cf, const char *path);
20 int popgconf(struct gconffile **cf);
21 void freegconf(struct gconffile **cf);
22 struct gconffile *openconfigfile(const char *file);