summaryrefslogtreecommitdiffstats
path: root/include/log.h
diff options
context:
space:
mode:
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 @@
1#ifndef _SWAY_LOG_H 1#ifndef _SWAY_LOG_H
2#define _SWAY_LOG_H 2#define _SWAY_LOG_H
3#include <stdbool.h>
4#include "container.h"
3 5
4typedef enum { 6typedef enum {
5 L_SILENT = 0, 7 L_SILENT = 0,
@@ -10,7 +12,10 @@ typedef enum {
10 12
11void init_log(int verbosity); 13void init_log(int verbosity);
12void sway_log_colors(int mode); 14void sway_log_colors(int mode);
13void sway_log(int verbosity, char* format, ...) __attribute__((format(printf,2,3))); 15void sway_log(int verbosity, const char* format, ...) __attribute__((format(printf,2,3)));
14void sway_abort(char* format, ...)__attribute__((format(printf,1,2))); 16void sway_log_errno(int verbosity, char* format, ...) __attribute__((format(printf,2,3)));
17void sway_abort(const char* format, ...) __attribute__((format(printf,1,2)));
18bool sway_assert(bool condition, const char* format, ...) __attribute__((format(printf,2,3)));
15 19
20void layout_log(const swayc_t *c, int depth);
16#endif 21#endif