2017-04-25 19:06:58 +00:00
|
|
|
#ifndef _WLR_COMMON_LOG_H
|
|
|
|
#define _WLR_COMMON_LOG_H
|
|
|
|
#include <stdbool.h>
|
2017-05-03 05:04:41 +00:00
|
|
|
#include <stdarg.h>
|
2017-04-25 19:06:58 +00:00
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
L_SILENT = 0,
|
|
|
|
L_ERROR = 1,
|
|
|
|
L_INFO = 2,
|
|
|
|
L_DEBUG = 3,
|
2017-06-05 02:50:33 +00:00
|
|
|
L_LAST,
|
2017-04-25 19:06:58 +00:00
|
|
|
} log_importance_t;
|
|
|
|
|
|
|
|
typedef void (*log_callback_t)(log_importance_t importance, const char *fmt, va_list args);
|
|
|
|
|
2017-06-05 02:50:33 +00:00
|
|
|
void wlr_init_log(log_callback_t callback);
|
|
|
|
void wlr_log_stderr(log_importance_t verbosity, const char *fmt, va_list args);
|
2017-04-25 19:06:58 +00:00
|
|
|
|
|
|
|
#endif
|