Revive radsecproxy.h and hostport_types.h and move rsp_* into radsecproxy/.
[libradsec.git] / lib / radsecproxy / debug.h
1 /* Copyright (c) 2007-2009, UNINETT AS
2  * Copyright (c) 2010-2011, NORDUnet A/S */
3 /* See LICENSE for licensing information. */
4
5 #ifndef SYS_SOLARIS9
6 #include <stdint.h>
7 #endif
8
9 #define DBG_DBG 8
10 #define DBG_INFO 16
11 #define DBG_NOTICE 32
12 #define DBG_WARN 64
13 #define DBG_ERR 128
14
15 #if defined (__cplusplus)
16 extern "C" {
17 #endif
18
19 void debug_init(char *ident);
20 void debug_set_level(uint8_t level);
21 void debug_timestamp_on();
22 uint8_t debug_get_level();
23 void debug(uint8_t level, char *format, ...);
24 void debugx(int status, uint8_t level, char *format, ...);
25 void debugerrno(int err, uint8_t level, char *format, ...);
26 void debugerrnox(int err, uint8_t level, char *format, ...);
27 int debug_set_destination(char *dest);
28 void debug_reopen_log();
29
30 #if defined (__cplusplus)
31 }
32 #endif
33
34 /* Local Variables: */
35 /* c-file-style: "stroustrup" */
36 /* End: */