Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
radsecproxy/gconfig.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
32 lines (27 sloc)
955 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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 | |
#include <stdio.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); | |
/* Local Variables: */ | |
/* c-file-style: "stroustrup" */ | |
/* End: */ |