diff options
author | Half-Shot <half-shot@molrams.com> | 2015-08-20 21:32:08 +0100 |
---|---|---|
committer | Half-Shot <half-shot@molrams.com> | 2015-08-20 21:32:08 +0100 |
commit | 5a9ba261bca4ca709ec7a14d2019b55d9ce06994 (patch) | |
tree | fe1a924cf8055b2b722566db6ab98295dcf08ce7 /include/log.h | |
parent | Basic left right move command implemented. (diff) | |
parent | Merge pull request #104 from minus7/ipc-get-messages (diff) | |
download | sway-5a9ba261bca4ca709ec7a14d2019b55d9ce06994.tar.gz sway-5a9ba261bca4ca709ec7a14d2019b55d9ce06994.tar.zst sway-5a9ba261bca4ca709ec7a14d2019b55d9ce06994.zip |
Merge branch 'master' of https://github.com/SirCmpwn/sway
Diffstat (limited to 'include/log.h')
-rw-r--r-- | include/log.h | 9 |
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 | ||
4 | typedef enum { | 6 | typedef enum { |
5 | L_SILENT = 0, | 7 | L_SILENT = 0, |
@@ -10,7 +12,10 @@ typedef enum { | |||
10 | 12 | ||
11 | void init_log(int verbosity); | 13 | void init_log(int verbosity); |
12 | void sway_log_colors(int mode); | 14 | void sway_log_colors(int mode); |
13 | void sway_log(int verbosity, char* format, ...) __attribute__((format(printf,2,3))); | 15 | void sway_log(int verbosity, const char* format, ...) __attribute__((format(printf,2,3))); |
14 | void sway_abort(char* format, ...)__attribute__((format(printf,1,2))); | 16 | void sway_log_errno(int verbosity, char* format, ...) __attribute__((format(printf,2,3))); |
17 | void sway_abort(const char* format, ...) __attribute__((format(printf,1,2))); | ||
18 | bool sway_assert(bool condition, const char* format, ...) __attribute__((format(printf,2,3))); | ||
15 | 19 | ||
20 | void layout_log(const swayc_t *c, int depth); | ||
16 | #endif | 21 | #endif |