summaryrefslogtreecommitdiff
path: root/gconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'gconfig.h')
-rw-r--r--gconfig.h6
1 files changed, 5 insertions, 1 deletions
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);