#include "tuya_cloud_types.h"
#include "tuya_cloud_types.h"
#define _TY_WORK_QUEUE_H
OPERATE_RET ty_work_queue_init(VOID);
/** * @brief init ty work queue * * @param[in] NONE * * @note This API is used for init work queue * * @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h */
OPERATE_RET ty_work_queue_add(IN CONST TY_WK_CB cb, IN CONST VOID *data);
/** * @brief add work to work queue * * @param[in] cb, call back of work * @param[in] data, parameter of call back * * @note This API is used for add work to work queue * * @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h */
UINT_T ty_work_queue_depth(VOID);
/** * @brief get current work number in work queue. * * @param[in] NONE * * @note This API is used for get the current work number in work queue. * * @return current work number in the work queue */
typedef VOID (*TY_WK_CB)(VOID *data);
/** * @brief call back prototype of work */