From: anisota Date: Sun, 13 Jan 2008 20:13:31 +0000 (+0100) Subject: add logging callback for sasc-ng X-Git-Tag: 0.8.7~4 X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=9e3bdfc1a2fc9722a692d2731608472fcb132405;p=sasc-ng.git add logging callback for sasc-ng --- diff --git a/log.c b/log.c index 170d4da..290f7e8 100644 --- a/log.c +++ b/log.c @@ -31,12 +31,6 @@ #define LMOD_SUP 32 #define LMOD_CFG_VALID 0x80000000 -struct LogHeader { - int c; - char stamp[32]; - char tag[64]; - }; - struct LogConfig logcfg = { 1,0,0, 0, @@ -64,6 +58,8 @@ static cMutex lastMutex; // -- cLogging ----------------------------------------------------------------- +void (*cLogging::LogPrint)(const struct LogHeader *lh, const char *txt)=cLogging::PrivateLogPrint; + bool cLogging::AddModule(int m, const struct LogModule *lm) { if(m