X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Flog.h;h=e9f757fe507a2c41c8d76bc7dc4fd789bd4bc6d9;hb=ccdef17af6b95031cf3b2c093f1594b635adbfdb;hp=34a8c16a76c414cefe0dc62f0b5cb92bd047f180;hpb=a1bf5e9bafc9c6dadc04749e4f9afbd6fc8b8cf5;p=swftools.git diff --git a/lib/log.h b/lib/log.h index 34a8c16..e9f757f 100644 --- a/lib/log.h +++ b/lib/log.h @@ -9,6 +9,9 @@ #ifndef __log_h__ #define __log_h__ +#ifdef __cplusplus +extern "C" { +#endif #ifdef __NT__ #include "stdafx.h" @@ -27,10 +30,15 @@ #define LOGLEVEL_VERBOSE 4 #define LOGLEVEL_DEBUG 5 +extern int screenloglevel; + extern void initLog(char* pLogDir, int fileloglevel, char* servAddr, char* logPort, int serverloglevel, int screenloglevel); -extern void logf(const char* logFormat, ...); +extern void msg(const char* logFormat, ...); extern void exitLog(void); #define FIXNULL(a) ((int)(a)?(a):"NULL") +#ifdef __cplusplus +} +#endif #endif // __log_h__