From e38ec5672aea398491911076fdc9f9c233624c0d Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 30 May 2017 15:46:01 +0200 Subject: Introduce debug levels, AD filter bug workaround, fix legacy homeattr not being lowercased --- helper.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'helper.h') 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 -- cgit v1.2.3-55-g7522