382d900085f08ecefe4ff6038f3bae85cd68a62d
[radsecproxy.git] / lib / rsp_debug.h
1 /*
2  * Copyright (C) 2007 Stig Venaas <venaas@uninett.no>
3  *
4  * Permission to use, copy, modify, and distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  */
8
9 #ifndef SYS_SOLARIS9
10 #include <stdint.h>
11 #endif
12
13 #define DBG_DBG 8
14 #define DBG_INFO 16
15 #define DBG_NOTICE 32
16 #define DBG_WARN 64
17 #define DBG_ERR 128
18
19 #if defined (__cplusplus)
20 extern "C" {
21 #endif
22
23 void debug_init(char *ident);
24 void debug_set_level(uint8_t level);
25 void debug_timestamp_on();
26 uint8_t debug_get_level();
27 void debug(uint8_t level, char *format, ...);
28 void debugx(int status, uint8_t level, char *format, ...);
29 void debugerrno(int err, uint8_t level, char *format, ...);
30 void debugerrnox(int err, uint8_t level, char *format, ...);
31 int debug_set_destination(char *dest);
32 void debug_reopen_log();
33
34 #if defined (__cplusplus)
35 }
36 #endif
37
38 /* Local Variables: */
39 /* c-file-style: "stroustrup" */
40 /* End: */