Skyld AV
0.6
On access virus scanning for Linux
|
Analyze configuration file. More...
Go to the source code of this file.
Functions | |
static void | skipComment (FILE *file) |
Skips comment. More... | |
static void | getToken (FILE *file, char *token, int *newline) |
Gets token. More... | |
int | parseConfigurationFile (char *filename, conf_cb cb, void *info) |
Parses configuration file. If cb is NULL the key value pairs are output to the console. Returns 0 if successful. More... | |
Analyze configuration file.
Each assignement line must have a key and a value separated by an equal sign.
key = value
Comments start with a number sign.
This is a comment.
Multiple values on a line must be separated by comma.
key = value1, value2
Alternatively multiple lines may be used.
key = value1 key = value2
Use backslashs to escape ' ', ',', '#' and '\'.
key = value\ with\ spaces
Lines may be empty.
Definition in file conf.c.
|
static |
int parseConfigurationFile | ( | char * | filename, |
conf_cb | cb, | ||
void * | info | ||
) |
Parses configuration file. If cb is NULL the key value pairs are output to the console. Returns 0 if successful.
filename | file name |
cb | callback function |
info | parameter passed to callback function |
Definition at line 123 of file conf.c.