diff options
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 @@ #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 |