mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-12-26 11:17:44 +01:00
17 lines
374 B
C
17 lines
374 B
C
|
|
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
|
||
|
|
/*
|
||
|
|
* Copyright (c) 2021 Rockchip Electronics Co., Ltd.
|
||
|
|
*/
|
||
|
|
|
||
|
|
#define MODULE_TAG "mpp_callback"
|
||
|
|
|
||
|
|
#include "mpp_callback.h"
|
||
|
|
|
||
|
|
MPP_RET mpp_callback_f(const char *caller, MppCbCtx *ctx, void *param)
|
||
|
|
{
|
||
|
|
if (ctx && ctx->ctx && ctx->callBack)
|
||
|
|
return ctx->callBack(caller, ctx->ctx, ctx->cmd, param);
|
||
|
|
|
||
|
|
return MPP_OK;
|
||
|
|
}
|