1 /* SPDX-License-Identifier: Apache-2.0 OR MIT */ 2 /* 3 * Copyright (c) 2015 Rockchip Electronics Co., Ltd. 4 */ 5 6 /* 7 * all os log function will provide two interface 8 * os_log and os_err 9 * os_log for general message 10 * os_err for error message 11 */ 12 13 #ifndef __OS_LOG_H__ 14 #define __OS_LOG_H__ 15 16 typedef void (*os_log_callback)(const char*, const char*, va_list); 17 18 #ifdef __cplusplus 19 extern "C" { 20 #endif 21 22 void os_log_trace(const char* tag, const char* msg, va_list list); 23 void os_log_debug(const char* tag, const char* msg, va_list list); 24 void os_log_info (const char* tag, const char* msg, va_list list); 25 void os_log_warn (const char* tag, const char* msg, va_list list); 26 void os_log_error(const char* tag, const char* msg, va_list list); 27 void os_log_fatal(const char* tag, const char* msg, va_list list); 28 29 #ifdef __cplusplus 30 } 31 #endif 32 33 #endif /*__OS_LOG_H__*/ 34 35