mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-19 08:56:27 -05:00
Flesh out wayland backend somewhat, add example
This commit is contained in:
parent
52e6ed54cb
commit
de01e654ce
17 changed files with 447 additions and 24 deletions
16
include/wlr/common/log.h
Normal file
16
include/wlr/common/log.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#ifndef _WLR_COMMON_LOG_H
|
||||
#define _WLR_COMMON_LOG_H
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef enum {
|
||||
L_SILENT = 0,
|
||||
L_ERROR = 1,
|
||||
L_INFO = 2,
|
||||
L_DEBUG = 3,
|
||||
} log_importance_t;
|
||||
|
||||
typedef void (*log_callback_t)(log_importance_t importance, const char *fmt, va_list args);
|
||||
|
||||
void init_log(log_callback_t callback);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue