aboutsummaryrefslogtreecommitdiff
path: root/include/log.h
diff options
context:
space:
mode:
authorHalf-Shot <half-shot@molrams.com>2015-08-20 21:32:08 +0100
committerHalf-Shot <half-shot@molrams.com>2015-08-20 21:32:08 +0100
commit5a9ba261bca4ca709ec7a14d2019b55d9ce06994 (patch)
treefe1a924cf8055b2b722566db6ab98295dcf08ce7 /include/log.h
parent2a62c5c7fb71fc815663281793ba6a89d2b246ed (diff)
parent1100335ea01ecd56df68568622580db14e72b6c7 (diff)
Merge branch 'master' of https://github.com/SirCmpwn/sway
Diffstat (limited to 'include/log.h')
-rw-r--r--include/log.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/log.h b/include/log.h
index d35b2a54..47a83321 100644
--- a/include/log.h
+++ b/include/log.h
@@ -1,5 +1,7 @@
#ifndef _SWAY_LOG_H
#define _SWAY_LOG_H
+#include <stdbool.h>
+#include "container.h"
typedef enum {
L_SILENT = 0,
@@ -10,7 +12,10 @@ typedef enum {
void init_log(int verbosity);
void sway_log_colors(int mode);
-void sway_log(int verbosity, char* format, ...) __attribute__((format(printf,2,3)));
-void sway_abort(char* format, ...)__attribute__((format(printf,1,2)));
+void sway_log(int verbosity, const char* format, ...) __attribute__((format(printf,2,3)));
+void sway_log_errno(int verbosity, char* format, ...) __attribute__((format(printf,2,3)));
+void sway_abort(const char* format, ...) __attribute__((format(printf,1,2)));
+bool sway_assert(bool condition, const char* format, ...) __attribute__((format(printf,2,3)));
+void layout_log(const swayc_t *c, int depth);
#endif