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 | c6bb23b7ddd6393c3d4a621bd2c610922a933867 (diff) | |
download | sway-5a70853253633482b09ebdcbde0f4ec7502c7527.tar.xz |
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 void error_handler(int sig); void layout_log(const swayc_t *c, int depth); +const char *swayc_type_string(enum swayc_types type); +void swayc_log(log_importance_t verbosity, swayc_t *cont, const char* format, ...) __attribute__((format(printf,3,4))); #endif |