X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=gconfig.h;h=3cb34b3a0c37e9f9188796b126651bce93967164;hb=refs%2Fheads%2Fpthread_create_attr;hp=f58016984ac6776503c3734d1279e41d8cffe8c9;hpb=cbd283e0022dd394799786c6504c85df7fd40b5b;p=libradsec.git diff --git a/gconfig.h b/gconfig.h index f580169..3cb34b3 100644 --- a/gconfig.h +++ b/gconfig.h @@ -1,12 +1,32 @@ +/* Copyright (c) 2007-2008, UNINETT AS */ +/* See LICENSE for licensing information. */ + #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(FILE *f, char *block, ...); -FILE *pushgconffile(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: */