From 9e3bdfc1a2fc9722a692d2731608472fcb132405 Mon Sep 17 00:00:00 2001 From: anisota Date: Sun, 13 Jan 2008 21:13:31 +0100 Subject: [PATCH] add logging callback for sasc-ng --- log.c | 18 ++++++++++++------ log.h | 10 +++++++++- 2 files changed, 21 insertions(+), 7 deletions(-) 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