You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
307 B
17 lines
307 B
#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
|