/****************************************************************************** @file Mid_otamon.h.h @brief ability about ota @author Unknow *******************************************************************************/ #ifndef _MID_OTAMON_H_ #define _MID_OTAMON_H_ #include "mid_psimon.h" /** * @brief MID_OtaMonStart * * param - None * * if return value * MID_SUCCESS: * MID_ERR_FAILURE: */ MID_Status_t MID_OtaMonStart(void); /** * @brief MID_OtaMonStop. * * param - bExit: * TRUE: OTAMON_THREAD_CMD_STOP2EXIT * FALSE: OTAMON_THREAD_CMD_STOP2IDLE * if return value */ MID_Status_t MID_OtaMonStop(bool bExit); /** * @brief When parseing a pmt after relevant information will be recorded and notified to the thread for further analysis. * * param - pData: * MID_SiutilPatInfo_t * * if return value */ MID_Status_t MID_OtaMonNotifyUpdate(void *pData); /** * @brief notified to the thread for further analysis. * * param - pData: * MID_SiutilPatInfo_t * * if return value */ MID_Status_t MID_OtaMonNotifyDetectUpgrade(void); /** * @brief When system start up, we must call this API. * OtaMonComCallback_t: * When the system finds an upgrade service, you can determine whether the service matched with the platform by callback * * param - None * * if return value * MID_SUCCESS: * MID_ERR_FAILURE: */ MID_Status_t MID_OtaMonInit(OtaMonComCallback_t callback); /** * @brief MID_OtaMonUnInit * * param - None * * if return value * MID_SUCCESS: * MID_ERR_FAILURE: */ MID_Status_t MID_OtaMonUnInit(void); /** * @brief When system start up, we must call this API. * iOtaMonCallBack: * When the system finds an UNT table, you can determine whether the service matched with the platform by callback * * param - None * * if return value * MID_SUCCESS: * MID_ERR_FAILURE: */ #ifdef CONFIG_SUPPORT_SSU_ENHANCE_UPGRADE MID_Status_t MID_OtaMonUntInit(iOtaMonCallBack _pfMonUNTCallbk); #endif int Mid_OtaMon_FindUpgradeInfoInPMT(MID_SiutilPmtStreamInfoDescr_t *pComp); void MID_PsiMonSetCurtProgrameHaveOta(bool bFlag); #endif