X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/81366ee3db67e313faeac5073dc8b1f0e7e71921..6aa0ed7fff929c4b2651667ab809d0ace1dac56d:/lib/dvb/epgcache.h diff --git a/lib/dvb/epgcache.h b/lib/dvb/epgcache.h index af02ead6..fe768aee 100644 --- a/lib/dvb/epgcache.h +++ b/lib/dvb/epgcache.h @@ -152,6 +152,7 @@ class eEPGCache: public eMainloop, private eThread, public Object DECLARE_REF(eEPGCache) struct channel_data: public Object { + pthread_mutex_t channel_active; channel_data(eEPGCache*); eEPGCache *cache; eTimer abortTimer, zapTimer; @@ -171,23 +172,22 @@ class eEPGCache: public eMainloop, private eThread, public Object std::set<__u8> seenPrivateSections; void readPrivateData(const __u8 *data); void startPrivateReader(); - bool canDelete() { return !isRunning && !m_PrivateConn; } -#else - bool canDelete() { return !isRunning; } #endif #ifdef ENABLE_MHW_EPG std::vector m_channels; std::map<__u8, mhw_theme_name_t> m_themes; std::map<__u32, mhw_title_t> m_titles; std::map<__u32, __u32> m_program_ids; - ePtr m_MHWConn; - ePtr m_MHWReader; - eDVBSectionFilterMask m_MHWFilterMask; + ePtr m_MHWConn, m_MHWConn2; + ePtr m_MHWReader, m_MHWReader2; + eDVBSectionFilterMask m_MHWFilterMask, m_MHWFilterMask2; eTimer m_MHWTimeoutTimer; bool m_MHWTimeoutet; void MHWTimeout() { m_MHWTimeoutet=true; } void readMHWData(const __u8 *data); + void readMHWData2(const __u8 *data); void startMHWReader(__u16 pid, __u8 tid); + void startMHWReader2(__u16 pid, __u8 tid, int ext=-1); void startTimeout(int msek); bool checkTimeout() { return m_MHWTimeoutet; } void cleanup(); @@ -295,17 +295,18 @@ public: #ifndef SWIG eEPGCache(); ~eEPGCache(); -#endif - // called from main thread - inline void Lock(); - inline void Unlock(); #ifdef ENABLE_PRIVATE_EPG void PMTready(eDVBServicePMTHandler *pmthandler); #else void PMTready(eDVBServicePMTHandler *pmthandler) {} #endif +#endif + // called from main thread + inline void Lock(); + inline void Unlock(); + // at moment just for one service.. RESULT startTimeQuery(const eServiceReference &service, time_t begin=-1, int minutes=-1);