introduced new logging subsystem using bus:

passive listeners can register on the bus
  active listeners wait for signals actively
  multiplexing allows multiple listeners to receive debug signals
  a lot more...
This commit is contained in:
Martin Willi
2006-10-18 11:46:13 +00:00
parent 8cdce67afa
commit 60356f3375
129 changed files with 4264 additions and 6440 deletions
+12 -4
View File
@@ -84,17 +84,25 @@
*
* Symmetric signing algorithms,
* used to ensure message integrity.
*
*
* @ingroup crypto
*/
/**
* @defgroup utils utils
*
*
* Generic helper classes.
*
*
* @ingroup libstrongswan
*/
/** debug macros, they call the dbg function hook */
#define DBG1(fmt, ...) dbg(1, fmt, ##__VA_ARGS__)
#define DBG2(fmt, ...) dbg(2, fmt, ##__VA_ARGS__)
#define DBG3(fmt, ...) dbg(3, fmt, ##__VA_ARGS__)
#define DBG4(fmt, ...) dbg(4, fmt, ##__VA_ARGS__)
/** dbg function hook, uses stderr logger by default */
extern void (*dbg) (int level, char *fmt, ...);
#endif /* LIBRARY_H_ */