|
|
@ -37,6 +37,9 @@ typedef void (*wlr_log_func_t)(enum wlr_log_importance importance,
|
|
|
|
// If `callback` is NULL, wlr will use its default logger.
|
|
|
|
// If `callback` is NULL, wlr will use its default logger.
|
|
|
|
void wlr_log_init(enum wlr_log_importance verbosity, wlr_log_func_t callback);
|
|
|
|
void wlr_log_init(enum wlr_log_importance verbosity, wlr_log_func_t callback);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Returns the log verbosity provided to wlr_log_init
|
|
|
|
|
|
|
|
enum wlr_log_importance wlr_log_get_verbosity(void);
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __GNUC__
|
|
|
|
#ifdef __GNUC__
|
|
|
|
#define _WLR_ATTRIB_PRINTF(start, end) __attribute__((format(printf, start, end)))
|
|
|
|
#define _WLR_ATTRIB_PRINTF(start, end) __attribute__((format(printf, start, end)))
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|