git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
only the headerfile of h263tables is included now.
[swftools.git]
/
lib
/
log.h
diff --git
a/lib/log.h
b/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__
#ifndef __log_h__
#define __log_h__
+#ifdef __cplusplus
+extern "C" {
+#endif
#ifdef __NT__
#include "stdafx.h"
#ifdef __NT__
#include "stdafx.h"
@@
-28,12
+31,14
@@
#define LOGLEVEL_DEBUG 5
extern int screenloglevel;
#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 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);
extern void exitLog(void);
+#define FIXNULL(a) ((int)(a)?(a):"NULL")
+
+#ifdef __cplusplus
+}
+#endif
#endif // __log_h__
#endif // __log_h__