changed logf to msg.
[swftools.git] / lib / log.h
index c31eeee..e9f757f 100644 (file)
--- 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"
 #define LOGLEVEL_DEBUG 5
 
 extern int screenloglevel;
-extern int socketloglevel;
-extern int fileloglevel;
 
 extern void initLog(char* pLogDir, int fileloglevel, char* servAddr, char* logPort, int serverloglevel, int screenloglevel);
-extern void log(char* logString);
-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__