]> git.cworth.org Git - apitrace/blobdiff - common/os.hpp
Android: add support for dynamically enable/disable tracing
[apitrace] / common / os.hpp
index 6a3b8c82f33840929b688de60ceb6f69fe9901b7..7f624517432838f1a8fd38515cbf0c871b15af6d 100644 (file)
 
 namespace os {
 
-void acquireMutex(void);
-
-void releaseMutex(void);
-
 void log(const char *format, ...)
 #ifdef __GNUC__
     __attribute__ ((format (printf, 1, 2)))
@@ -74,10 +70,14 @@ void log(const char *format, ...)
   #endif
 #endif
 
-/**
- * Get the current time in microseconds from an unknown base.
- */
-long long getTime(void);
+#ifdef ANDROID
+bool apitrace_enabled(void);
+#else
+static inline bool apitrace_enabled(void)
+{
+    return true;
+}
+#endif
 
 void abort(void);