/****************************************************************************** * * \file mid_ews.h * * \brief implementation of ews monitor middle-ware. * * * \note Copyright (c) 2014 Sunplus Technology Co., Ltd. \n * All rights reserved. * * \author qin.he * ******************************************************************************/ #ifndef _EWS_H #define _EWS_H #include #include #include #include "mid_siutil_13818.h" #include "mid_siutil_dvb.h" #include "mid_psimon.h" #include "dvb_dr_dvb.h" #include "unt.h" typedef void (*MidEwsCallBack)(void *data); MID_Status_t MID_EwsInit(MidEwsCallBack pCallBack); /** * @brief ews monitor init function. * * @param pCallBack[input] ews monitor send pmt data to uplayer * * @return MID_SUCCESS if initialization is successful, AL_FAILURE otherwise. */ void MID_EwsUninit(void); /** * @brief ews monitor start function. * * @param None * * @return MID_SUCCESS is successful, AL_FAILURE otherwise. */ MID_Status_t MID_EwsStart(void); /** * @brief ews monitor stop function. * * @param bExit[input]: exit ews task flag * * @return MID_SUCCESS is successful, AL_FAILURE otherwise. */ MID_Status_t MID_EwsStop(bool bExit); /** * @brief set pmt pid info according to pat data. * * @param pPat[input]: pat data * * @return MID_SUCCESS is successful, AL_FAILURE otherwise. */ MID_Status_t MID_EwsAddPmt(MID_SiutilPatInfo_t *pPat); #endif