Skyld AV  0.6
On access virus scanning for Linux
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
conf.h
Go to the documentation of this file.
1 /*
2  * File: conf.h
3  *
4  * Copyright 2013 Heinrich Schuchardt <xypron.glpk@gmx.de>
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  */
19 
25 #ifndef CONF_H
26 #define CONF_H
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 #define CONF_VALUE_MAX_LEN 512
33 
34 typedef int (*conf_cb)(const char *key, const char *value, void *info);
35 
36 int parseConfigurationFile(char *filename, conf_cb cb, void *info);
37 
38 #ifdef __cplusplus
39 }
40 #endif
41 
42 #endif /* CONF_H */
43 
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.
Definition: conf.c:123
int(* conf_cb)(const char *key, const char *value, void *info)
Definition: conf.h:34