aboutsummaryrefslogtreecommitdiffstats
path: root/src/native/windows/msofficecomm/Log.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/native/windows/msofficecomm/Log.h')
-rw-r--r--src/native/windows/msofficecomm/Log.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/native/windows/msofficecomm/Log.h b/src/native/windows/msofficecomm/Log.h
new file mode 100644
index 0000000..aa71ae9
--- /dev/null
+++ b/src/native/windows/msofficecomm/Log.h
@@ -0,0 +1,38 @@
+/*
+ * Jitsi, the OpenSource Java VoIP and Instant Messaging client.
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
+ */
+#ifndef _JMSOFFICECOMM_LOG_H_
+#define _JMSOFFICECOMM_LOG_H_
+
+#include <stdio.h>
+#include <tchar.h>
+#include <windows.h>
+
+class Log
+{
+public:
+ static void close()
+ {
+ if (_stderr && (_stderr != stderr))
+ {
+ ::fclose(_stderr);
+ _stderr = stderr;
+ }
+ }
+
+#ifdef _UNICODE
+ static int d(LPCTSTR format, LPCSTR str);
+#endif /* #ifdef _UNICODE */
+ static int d(LPCTSTR format, ...);
+ static FILE *open();
+
+private:
+ static LPTSTR getModuleFileName();
+
+ static FILE *_stderr;
+};
+
+#endif /* #ifndef _JMSOFFICECOMM_LOG_H_ */