mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
Allow configurable verbosity
This commit is contained in:
parent
80ed4d4d20
commit
5a26ed645a
3 changed files with 15 additions and 3 deletions
|
|
@ -16,7 +16,9 @@ typedef enum {
|
|||
|
||||
typedef void (*log_callback_t)(log_importance_t importance, const char *fmt, va_list args);
|
||||
|
||||
void wlr_log_init(log_callback_t callback);
|
||||
// Will log all messages less than or equal to `verbosity`
|
||||
// If `callback` is NULL, wlr will use its default logger.
|
||||
void wlr_log_init(log_importance_t verbosity, log_callback_t callback);
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define ATTRIB_PRINTF(start, end) __attribute__((format(printf, start, end)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue