git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
swfvideo.o is now compiled separately.
[swftools.git]
/
lib
/
log.h
diff --git
a/lib/log.h
b/lib/log.h
index
31b99fb
..
e9f757f
100644
(file)
--- a/
lib/log.h
+++ b/
lib/log.h
@@
-9,6
+9,9
@@
#ifndef __log_h__
#define __log_h__
#ifndef __log_h__
#define __log_h__
+#ifdef __cplusplus
+extern "C" {
+#endif
#ifdef __NT__
#include "stdafx.h"
#ifdef __NT__
#include "stdafx.h"
@@
-27,8
+30,15
@@
#define LOGLEVEL_VERBOSE 4
#define LOGLEVEL_DEBUG 5
#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 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);
extern void exitLog(void);
+#define FIXNULL(a) ((int)(a)?(a):"NULL")
+
+#ifdef __cplusplus
+}
+#endif
#endif // __log_h__
#endif // __log_h__