X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=gconfig.h;h=463ebdfddca8867804527e55bea1ef5abb6ff8fd;hb=8f6155f3fa89f0b8c16bdc3b73db2d479105aab4;hp=409b1ba51608dde4f8435a2c48e6227a231c1a1f;hpb=b79f901f19fe09bc6281ace20b3149be3e1ee355;p=radsecproxy.git diff --git a/gconfig.h b/gconfig.h index 409b1ba..463ebdf 100644 --- a/gconfig.h +++ b/gconfig.h @@ -1,13 +1,29 @@ #define CONF_STR 1 #define CONF_CBK 2 #define CONF_MSTR 3 +#define CONF_BLN 4 +#define CONF_LINT 5 + +#include struct gconffile { char *path; FILE *file; + const char *data; + size_t datapos; }; -void getgenericconfig(struct gconffile **cf, char *block, ...); -FILE *pushgconffile(struct gconffile **cf, const char *path); -FILE *pushgconffiles(struct gconffile **cf, const char *path); -FILE *popgconffile(struct gconffile **cf); +int getconfigline(struct gconffile **cf, char *block, char **opt, char **val, int *conftype); +int getgenericconfig(struct gconffile **cf, char *block, ...); +int pushgconfdata(struct gconffile **cf, const char *data); +FILE *pushgconfpath(struct gconffile **cf, const char *path); +FILE *pushgconffile(struct gconffile **cf, FILE *file, const char *description); +FILE *pushgconfpaths(struct gconffile **cf, const char *path); +int popgconf(struct gconffile **cf); +void freegconfmstr(char **mstr); +void freegconf(struct gconffile **cf); +struct gconffile *openconfigfile(const char *file); + +/* Local Variables: */ +/* c-file-style: "stroustrup" */ +/* End: */