forked from radsecproxy/radsecproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgconfig.h
More file actions
36 lines (31 loc) · 1.04 KB
/
gconfig.h
File metadata and controls
36 lines (31 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* Copyright (c) 2007-2008, UNINETT AS */
/* See LICENSE for licensing information. */
#define CONF_STR 1
#define CONF_CBK 2
#define CONF_MSTR 3
#define CONF_BLN 4
#define CONF_LINT 5
#define CONF_STR_NOESC 6
#define CONF_MSTR_NOESC 7
#include <stdio.h>
#include <stdint.h>
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 *pushgconfpath(struct gconffile **cf, const char *path);
FILE *pushgconffile(struct gconffile **cf, FILE *file, const char *description);
FILE *pushgconfpaths(struct gconffile **cf, const char *path);
int popgconf(struct gconffile **cf);
void freegconfmstr(char **mstr);
void freegconf(struct gconffile **cf);
struct gconffile *openconfigfile(const char *file);
int unhex(char *s, uint8_t process_null);
/* Local Variables: */
/* c-file-style: "stroustrup" */
/* End: */