fix[mpp_cfg]: Fix function define on C++ field

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Id66c928e5e7393fe289457326ca83490255db152
This commit is contained in:
Herman Chen 2025-04-27 15:19:31 +08:00
parent 54d72a64c5
commit 817a5434da

View file

@ -40,6 +40,18 @@ typedef struct MppCfgInfo_t {
RK_S32 data_size;
} MppCfgInfo;
/* header size 128 byte */
typedef struct MppCfgInfoHead_t {
char version[116];
RK_S32 info_size;
RK_S32 info_count;
RK_S32 node_count;
} MppCfgInfoHead;
#ifdef __cplusplus
extern "C" {
#endif
MPP_RET mpp_cfg_set_s32(MppCfgInfo *info, void *cfg, RK_S32 val);
MPP_RET mpp_cfg_get_s32(MppCfgInfo *info, void *cfg, RK_S32 *val);
MPP_RET mpp_cfg_set_u32(MppCfgInfo *info, void *cfg, RK_U32 val);
@ -66,18 +78,6 @@ MPP_RET mpp_cfg_get_ptr(MppCfgInfo *info, void *cfg, void **val);
#define MPP_CFG_SET_Ptr(info, cfg, val) (mpp_cfg_set_ptr)(info, cfg, val)
#define MPP_CFG_GET_Ptr(info, cfg, val) (mpp_cfg_get_ptr)(info, cfg, (void **)(val))
/* header size 128 byte */
typedef struct MppCfgInfoHead_t {
char version[116];
RK_S32 info_size;
RK_S32 info_count;
RK_S32 node_count;
} MppCfgInfoHead;
#ifdef __cplusplus
extern "C" {
#endif
const char *strof_cfg_type(CfgType type);
#define CHECK_CFG_INFO(node, name, type) \