diff options
author | Simon Rettberg | 2017-05-30 15:46:01 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-05-30 15:46:01 +0200 |
commit | e38ec5672aea398491911076fdc9f9c233624c0d (patch) | |
tree | b9ac72b8e4b3f6db5339e5d1c69884402a39d5f6 /helper.h | |
parent | Support specifying custom attribute names for schema (diff) | |
download | ldadp-e38ec5672aea398491911076fdc9f9c233624c0d.tar.gz ldadp-e38ec5672aea398491911076fdc9f9c233624c0d.tar.xz ldadp-e38ec5672aea398491911076fdc9f9c233624c0d.zip |
Introduce debug levels, AD filter bug workaround, fix legacy homeattr not being lowercased
Diffstat (limited to 'helper.h')
-rw-r--r-- | helper.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -24,5 +24,17 @@ static inline int max(const int a, const int b) return a > b ? a : b; } +typedef enum { + DEBUG_FATAL = 0, + DEBUG_WARNING = 1, + DEBUG_INFO = 2, + DEBUG_VERBOSE = 3, + DEBUG_TRACE = 4, +} DebugLevel; + +extern DebugLevel _debugLevel; + +void plog(const DebugLevel debugLevel, char *args, ...); + #endif |