aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/common/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/wlr/common/log.h')
-rw-r--r--include/wlr/common/log.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/wlr/common/log.h b/include/wlr/common/log.h
new file mode 100644
index 00000000..5b4d5a53
--- /dev/null
+++ b/include/wlr/common/log.h
@@ -0,0 +1,16 @@
+#ifndef _WLR_COMMON_LOG_H
+#define _WLR_COMMON_LOG_H
+#include <stdbool.h>
+
+typedef enum {
+ L_SILENT = 0,
+ L_ERROR = 1,
+ L_INFO = 2,
+ L_DEBUG = 3,
+} log_importance_t;
+
+typedef void (*log_callback_t)(log_importance_t importance, const char *fmt, va_list args);
+
+void init_log(log_callback_t callback);
+
+#endif