summaryrefslogtreecommitdiffstats
path: root/helper.h
diff options
context:
space:
mode:
authorSimon Rettberg2017-05-30 15:46:01 +0200
committerSimon Rettberg2017-05-30 15:46:01 +0200
commite38ec5672aea398491911076fdc9f9c233624c0d (patch)
treeb9ac72b8e4b3f6db5339e5d1c69884402a39d5f6 /helper.h
parentSupport specifying custom attribute names for schema (diff)
downloadldadp-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.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/helper.h b/helper.h
index 838078f..17d407e 100644
--- a/helper.h
+++ b/helper.h
@@ -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