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