From 405ae6c9f97d0e481c0e7f2792e7f7be6abe1b26 Mon Sep 17 00:00:00 2001 From: venaas Date: Thu, 29 May 2008 12:55:10 +0000 Subject: made gconfig support input from string git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@265 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- gconfig.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gconfig.h') diff --git a/gconfig.h b/gconfig.h index 55e8efe..3d11cbc 100644 --- a/gconfig.h +++ b/gconfig.h @@ -6,11 +6,15 @@ struct gconffile { char *path; FILE *file; + const char *data; + size_t datapos; }; 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 *pushgconffile(struct gconffile **cf, const char *path); FILE *pushgconffiles(struct gconffile **cf, const char *path); -FILE *popgconffile(struct gconffile **cf); +int popgconf(struct gconffile **cf); +void freegconf(struct gconffile **cf); struct gconffile *openconfigfile(const char *file); -- cgit v1.1