gconfig.h 512 Bytes
Newer Older
1
2
3
#define CONF_STR 1
#define CONF_CBK 2
#define CONF_MSTR 3
4
#define CONF_BLN 4
5

6
7
8
9
10
struct gconffile {
    char *path;
    FILE *file;
};

venaas's avatar
venaas committed
11
void getconfigline(struct gconffile **cf, char *block, char **opt, char **val, int *conftype);
12
void getgenericconfig(struct gconffile **cf, char *block, ...);
13
FILE *pushgconffile(struct gconffile **cf, const char *path);
venaas's avatar
venaas committed
14
FILE *pushgconffiles(struct gconffile **cf, const char *path);
15
FILE *popgconffile(struct gconffile **cf);
venaas's avatar
venaas committed
16
struct gconffile *openconfigfile(const char *file);