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 #ifndef CFG_LOGGING_H
29 #define CFG_LOGGING_H
30
31 #include <stdarg.h>
32
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36
37 typedef int (*cfg_logfunc)(
int degree,
const char *format, va_list args);
38
39 int ws_cfg_log(
int degree,
const char *format, ...);
40
41 void ws_cfg_set_logfunc(cfg_logfunc func);
42
43
44 #ifdef __cplusplus
45 }
46 #endif
47
48 #endif
49