]> git.cworth.org Git - apitrace/blobdiff - common/os.hpp
os: Fix thread copy constructor.
[apitrace] / common / os.hpp
index 24a38efcf999a07dd75c14ddf11bdeb42e44ca31..cc72a0ea5b288184ffeb1759894344d2f5f5de3a 100644 (file)
@@ -33,6 +33,7 @@
 #include <stdlib.h>
 #include <stdarg.h>
 #include <stdio.h>
+#include <string.h>
 
 #ifdef _WIN32
 #ifndef snprintf
 #ifndef vsnprintf
 #define vsnprintf _vsnprintf
 #endif
-#define PATH_SEP '\\'
-#else /* !_WIN32 */
-#define PATH_SEP '/'
 #endif /* !_WIN32 */
 
-#ifndef PATH_MAX
-#define PATH_MAX 1024
-#endif
-
 namespace os {
 
-void AcquireMutex(void);
-
-void ReleaseMutex(void);
-
-bool GetProcessName(char *str, size_t size);
-bool GetCurrentDir(char *str, size_t size);
-
-void DebugMessage(const char *format, ...)
+void log(const char *format, ...)
 #ifdef __GNUC__
     __attribute__ ((format (printf, 1, 2)))
 #endif
@@ -83,15 +70,10 @@ void DebugMessage(const char *format, ...)
   #endif
 #endif
 
-/**
- * Get the current time in microseconds from an unknown base.
- */
-long long GetTime(void);
-
-void Abort(void);
+void abort(void);
 
-void SetExceptionCallback(void (*callback)(void));
-void ResetExceptionCallback(void);
+void setExceptionCallback(void (*callback)(void));
+void resetExceptionCallback(void);
 
 } /* namespace os */