diff options
author | venaas <venaas> | 2008-05-29 12:55:10 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2008-05-29 12:55:10 +0000 |
commit | 405ae6c9f97d0e481c0e7f2792e7f7be6abe1b26 (patch) | |
tree | 1d506bd062c175f6c535ac1017c50a78e45f1ab0 /gconfig.h | |
parent | b72f0bc21955d6dd1a3a2c581b0e58828dc624b7 (diff) |
made gconfig support input from string
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@265 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'gconfig.h')
-rw-r--r-- | gconfig.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); |