mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-09-28 05:52:07 +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
33 lines
663 B
C
33 lines
663 B
C
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
|
|
/*
|
|
* Copyright (c) 2021 Rockchip Electronics Co., Ltd.
|
|
*/
|
|
|
|
#ifndef __MPP_CALLBACK_H__
|
|
#define __MPP_CALLBACK_H__
|
|
|
|
#include "rk_type.h"
|
|
#include "mpp_err.h"
|
|
|
|
typedef MPP_RET (*MppCallBack)(const char *caller, void *ctx, RK_S32 cmd, void *param);
|
|
|
|
typedef struct DecCallBackCtx_t {
|
|
MppCallBack callBack;
|
|
void *ctx;
|
|
RK_S32 cmd;
|
|
} MppCbCtx;
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define mpp_callback(ctx, param) mpp_callback_f(__FUNCTION__, ctx, param)
|
|
|
|
MPP_RET mpp_callback_f(const char *caller, MppCbCtx *ctx, void *param);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __MPP_CALLBACK_H__ */
|