radsecproxy-1.6.5.
[libradsec.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 #include <stdio.h>
8
9 struct gconffile {
10     char *path;
11     FILE *file;
12     const char *data;
13     size_t datapos;
14 };
15
16 int getconfigline(struct gconffile **cf, char *block, char **opt, char **val, int *conftype);
17 int getgenericconfig(struct gconffile **cf, char *block, ...);
18 int pushgconfdata(struct gconffile **cf, const char *data);
19 FILE *pushgconfpath(struct gconffile **cf, const char *path);
20 FILE *pushgconffile(struct gconffile **cf, FILE *file, const char *description);
21 FILE *pushgconfpaths(struct gconffile **cf, const char *path);
22 int popgconf(struct gconffile **cf);
23 void freegconfmstr(char **mstr);
24 void freegconf(struct gconffile **cf);
25 struct gconffile *openconfigfile(const char *file);
26
27 /* Local Variables: */
28 /* c-file-style: "stroustrup" */
29 /* End: */