Revive radsecproxy.h and hostport_types.h and move rsp_* into radsecproxy/.
[libradsec.git] / lib / radsecproxy / gconfig.h
1 /* Copyright (c) 2007-2008, UNINETT AS */
2 /* See LICENSE for licensing information. */
3
4 #define CONF_STR 1
5 #define CONF_CBK 2
6 #define CONF_MSTR 3
7 #define CONF_BLN 4
8 #define CONF_LINT 5
9
10 #include <stdio.h>
11
12 struct gconffile {
13     char *path;
14     FILE *file;
15     const char *data;
16     size_t datapos;
17 };
18
19 int getconfigline(struct gconffile **cf, char *block, char **opt, char **val, int *conftype);
20 int getgenericconfig(struct gconffile **cf, char *block, ...);
21 int pushgconfdata(struct gconffile **cf, const char *data);
22 FILE *pushgconfpath(struct gconffile **cf, const char *path);
23 FILE *pushgconffile(struct gconffile **cf, FILE *file, const char *description);
24 FILE *pushgconfpaths(struct gconffile **cf, const char *path);
25 int popgconf(struct gconffile **cf);
26 void freegconfmstr(char **mstr);
27 void freegconf(struct gconffile **cf);
28 struct gconffile *openconfigfile(const char *file);
29
30 /* Local Variables: */
31 /* c-file-style: "stroustrup" */
32 /* End: */