mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-09-28 22:12:08 +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
40 lines
958 B
C
40 lines
958 B
C
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
|
|
/*
|
|
* Copyright (c) 2015 Rockchip Electronics Co., Ltd.
|
|
*/
|
|
|
|
#if defined(__ANDROID__)
|
|
#include <android/log.h>
|
|
|
|
void os_log_trace(const char* tag, const char* msg, va_list list)
|
|
{
|
|
__android_log_vprint(ANDROID_LOG_VERBOSE, tag, msg, list);
|
|
}
|
|
|
|
void os_log_debug(const char* tag, const char* msg, va_list list)
|
|
{
|
|
__android_log_vprint(ANDROID_LOG_DEBUG, tag, msg, list);
|
|
}
|
|
|
|
void os_log_info(const char* tag, const char* msg, va_list list)
|
|
{
|
|
__android_log_vprint(ANDROID_LOG_INFO, tag, msg, list);
|
|
}
|
|
|
|
void os_log_warn(const char* tag, const char* msg, va_list list)
|
|
{
|
|
__android_log_vprint(ANDROID_LOG_WARN, tag, msg, list);
|
|
}
|
|
|
|
void os_log_error(const char* tag, const char* msg, va_list list)
|
|
{
|
|
__android_log_vprint(ANDROID_LOG_ERROR, tag, msg, list);
|
|
}
|
|
|
|
void os_log_fatal(const char* tag, const char* msg, va_list list)
|
|
{
|
|
__android_log_vprint(ANDROID_LOG_FATAL, tag, msg, list);
|
|
}
|
|
|
|
#endif
|