summaryrefslogtreecommitdiff
path: root/include/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/log.h')
-rw-r--r--include/log.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/log.h b/include/log.h
new file mode 100644
index 00000000..e5075a39
--- /dev/null
+++ b/include/log.h
@@ -0,0 +1,16 @@
+#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_colors(int mode);
+void sway_log(int verbosity, char* format, ...);
+void sway_abort(char* format, ...);
+
+#endif