1 /* SPDX-License-Identifier: Apache-2.0 OR MIT */ 2 /* 3 * Copyright (c) 2021 Rockchip Electronics Co., Ltd. 4 */ 5 6 #ifndef __MPP_SERVER_H__ 7 #define __MPP_SERVER_H__ 8 9 #include "mpp_device.h" 10 11 #ifdef __cplusplus 12 extern "C" { 13 #endif 14 15 rk_s32 mpp_server_attach(MppDev ctx); 16 rk_s32 mpp_server_detach(MppDev ctx); 17 18 rk_s32 mpp_server_send_task(MppDev ctx); 19 rk_s32 mpp_server_wait_task(MppDev ctx, RK_S64 timeout); 20 21 #ifdef __cplusplus 22 } 23 #endif 24 25 #endif /* __MPP_SERVER_H__ */ 26