summaryrefslogtreecommitdiff
path: root/gconfig.h
diff options
context:
space:
mode:
authorvenaas <venaas>2008-05-29 12:55:10 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2008-05-29 12:55:10 +0000
commit405ae6c9f97d0e481c0e7f2792e7f7be6abe1b26 (patch)
tree1d506bd062c175f6c535ac1017c50a78e45f1ab0 /gconfig.h
parentb72f0bc21955d6dd1a3a2c581b0e58828dc624b7 (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.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);