新增C API 广播日志到上层应用

This commit is contained in:
kevin cheng
2021-08-30 19:03:20 +08:00
parent d2f02c0a0c
commit 5bd169e6de
6 changed files with 82 additions and 4 deletions

View File

@@ -152,6 +152,18 @@ typedef struct {
size_t total_seconds,
int is_player,
const mk_sock_info sender);
/**
* 日志输出广播
* @param level 日志级别
* @param file 源文件名
* @param line 源文件行
* @param function 源文件方法
* @param message 日志内容
*/
void (API_CALL *on_mk_log)(int level, const char* file, int line, const char *function, const char* message);
} mk_events;