diff options
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); |