Remove Stig from first copyright line.
[radsecproxy.git] / debug.h
1 /* Copyright (c) 2006-2010, UNINETT AS.
2  * Copyright (c) 2010, UNINETT AS, NORDUnet A/S.
3  * Copyright (c) 2010-2012, NORDUnet A/S. */
4 /* See LICENSE for licensing information. */
5
6 #ifndef SYS_SOLARIS9
7 #include <stdint.h>
8 #endif
9
10 #define DBG_DBG 8
11 #define DBG_INFO 16
12 #define DBG_NOTICE 32
13 #define DBG_WARN 64
14 #define DBG_ERR 128
15
16 #define LOG_TYPE_DEBUG 0
17 #define LOG_TYPE_FTICKS 1
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, int log_type);
28 void debug_reopen_log();
29 #if defined(WANT_FTICKS)
30 void fticks_debug(const char *format, ...);
31 #endif
32
33 /* Local Variables: */
34 /* c-file-style: "stroustrup" */
35 /* End: */