diff options
author | Tobias Brunner <tobias@strongswan.org> | 2010-03-31 17:17:02 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2010-04-06 12:47:40 +0200 |
commit | 3fdee23f18f955dbeee14878da791fdcfdcf393d (patch) | |
tree | a44f268d8671756dd0412139a1aa7c1167a34644 /src/libcharon/bus/bus.h | |
parent | 9f3df622e4f1bbfd16cecc9f46e3b48e8deb83e2 (diff) | |
download | strongswan-3fdee23f18f955dbeee14878da791fdcfdcf393d.tar.bz2 strongswan-3fdee23f18f955dbeee14878da791fdcfdcf393d.tar.xz |
Move debug groups from charon's bus.h to libstrongswan's debug.h.
Diffstat (limited to 'src/libcharon/bus/bus.h')
-rw-r--r-- | src/libcharon/bus/bus.h | 66 |
1 files changed, 7 insertions, 59 deletions
diff --git a/src/libcharon/bus/bus.h b/src/libcharon/bus/bus.h index ca974d81b..8cf392eae 100644 --- a/src/libcharon/bus/bus.h +++ b/src/libcharon/bus/bus.h @@ -21,75 +21,23 @@ #ifndef BUS_H_ #define BUS_H_ -typedef enum debug_t debug_t; -typedef enum level_t level_t; typedef enum alert_t alert_t; typedef struct bus_t bus_t; #include <stdarg.h> +#include <debug.h> #include <sa/ike_sa.h> #include <sa/child_sa.h> #include <processing/jobs/job.h> #include <bus/listeners/listener.h> -/** - * Debug message group. - */ -enum debug_t { - /** daemon main loop */ - DBG_DMN, - /** IKE_SA_MANAGER */ - DBG_MGR, - /** IKE_SA */ - DBG_IKE, - /** CHILD_SA */ - DBG_CHD, - /** job processing */ - DBG_JOB, - /** configuration backends */ - DBG_CFG, - /** kernel interface */ - DBG_KNL, - /** networking/sockets */ - DBG_NET, - /** message encoding/decoding */ - DBG_ENC, - /** libstrongswan via logging hook */ - DBG_LIB, - /** number of groups */ - DBG_MAX, - /** pseudo group with all groups */ - DBG_ANY = DBG_MAX, -}; - -/** - * short names of debug message group. - */ -extern enum_name_t *debug_names; - -/** - * short names of debug message group, lower case. - */ -extern enum_name_t *debug_lower_names; - -/** - * Debug levels used to control output verbosity. - */ -enum level_t { - /** absolutely silent */ - LEVEL_SILENT = -1, - /** most important auditing logs */ - LEVEL_AUDIT = 0, - /** control flow */ - LEVEL_CTRL = 1, - /** diagnose problems */ - LEVEL_DIAG = 2, - /** raw binary blobs */ - LEVEL_RAW = 3, - /** including sensitive data (private keys) */ - LEVEL_PRIVATE = 4, -}; +/* undefine the definitions from libstrongswan */ +#undef DBG0 +#undef DBG1 +#undef DBG2 +#undef DBG3 +#undef DBG4 #ifndef DEBUG_LEVEL # define DEBUG_LEVEL 4 |