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