cpp, simple wrappers for most of what we need, ivi_* still incomplete
[staging/windowmanager.git] / src / util.h
index 7a15454..600c638 100644 (file)
@@ -1,8 +1,22 @@
 #ifndef WM_UTIL_H
 #define WM_UTIL_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 void lognotice(char const *fmt, ...);
 void logerror(char const *fmt, ...);
 void fatal(char const *fmt, ...);
 
+#ifdef DEBUG_OUTPUT
+void logdebug(char const *fmt, ...);
+#else
+inline void logdebug(char const *fmt, ...) {}
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
 #endif // !WM_UTIL_H