diff options
author | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-10-25 00:34:57 +0200 |
---|---|---|
committer | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-10-25 13:14:28 +0100 |
commit | 5a70853253633482b09ebdcbde0f4ec7502c7527 (patch) | |
tree | aa6841b0faf26ef4bd01010029b8e3a4e0d31c50 /include | |
parent | sway/output: Create, move code from handlers.c here. (diff) | |
download | sway-5a70853253633482b09ebdcbde0f4ec7502c7527.tar.gz sway-5a70853253633482b09ebdcbde0f4ec7502c7527.tar.zst sway-5a70853253633482b09ebdcbde0f4ec7502c7527.zip |
log: Add swayc_log, use at a few key places.
swayc_log works just like sway_log, but appends type and name from given
container to the log output.
Diffstat (limited to 'include')
-rw-r--r-- | include/log.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/log.h b/include/log.h index f8deaf26..806725a6 100644 --- a/include/log.h +++ b/include/log.h | |||
@@ -23,4 +23,6 @@ bool _sway_assert(bool condition, const char* format, ...) __attribute__((format | |||
23 | void error_handler(int sig); | 23 | void error_handler(int sig); |
24 | 24 | ||
25 | void layout_log(const swayc_t *c, int depth); | 25 | void layout_log(const swayc_t *c, int depth); |
26 | const char *swayc_type_string(enum swayc_types type); | ||
27 | void swayc_log(log_importance_t verbosity, swayc_t *cont, const char* format, ...) __attribute__((format(printf,3,4))); | ||
26 | #endif | 28 | #endif |