X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Flog.h;h=e9f757fe507a2c41c8d76bc7dc4fd789bd4bc6d9;hb=ccdef17af6b95031cf3b2c093f1594b635adbfdb;hp=31b99fb25e1b03518513f004cfe1415ca5c655c7;hpb=9a1cd49d755ebec6a9f085ca2025706b94927b82;p=swftools.git diff --git a/lib/log.h b/lib/log.h index 31b99fb..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,8 +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__