aboutsummaryrefslogtreecommitdiff
path: root/sway/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'sway/log.h')
-rw-r--r--sway/log.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/sway/log.h b/sway/log.h
new file mode 100644
index 00000000..019012d3
--- /dev/null
+++ b/sway/log.h
@@ -0,0 +1,15 @@
+#ifndef _SWAY_LOG_H
+#define _SWAY_LOG_H
+
+typedef enum {
+ L_SILENT = 0,
+ L_ERROR = 1,
+ L_INFO = 2,
+ L_DEBUG = 3,
+} log_importance_t;
+
+void init_log(int verbosity);
+void sway_log(int verbosity, char* format, ...);
+void sway_abort(char* format, ...);
+
+#endif