mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-04 16:52:40 +08:00

1. Refactor osal cpp files to c. 2. Update osal license to Apache-2.0 OR MIT. 3. Remove windows support. Signed-off-by: Herman Chen <herman.chen@rock-chips.com> Change-Id: Ic5545d861676880f7a6247515404d585cd4fcef5
35 lines
856 B
C
35 lines
856 B
C
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
|
|
/*
|
|
* Copyright (c) 2015 Rockchip Electronics Co., Ltd.
|
|
*/
|
|
|
|
/*
|
|
* all os log function will provide two interface
|
|
* os_log and os_err
|
|
* os_log for general message
|
|
* os_err for error message
|
|
*/
|
|
|
|
#ifndef __OS_LOG_H__
|
|
#define __OS_LOG_H__
|
|
|
|
typedef void (*os_log_callback)(const char*, const char*, va_list);
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void os_log_trace(const char* tag, const char* msg, va_list list);
|
|
void os_log_debug(const char* tag, const char* msg, va_list list);
|
|
void os_log_info (const char* tag, const char* msg, va_list list);
|
|
void os_log_warn (const char* tag, const char* msg, va_list list);
|
|
void os_log_error(const char* tag, const char* msg, va_list list);
|
|
void os_log_fatal(const char* tag, const char* msg, va_list list);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /*__OS_LOG_H__*/
|
|
|