X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/5cdabb1038ec3f628001f26f5d587eb95ca6465d..f6b446cf3f2373e1e7f2d0fb19c19320e1b006d9:/lib/dvb/dvb.h diff --git a/lib/dvb/dvb.h b/lib/dvb/dvb.h index fcfbdfe7..ee8ea8ef 100644 --- a/lib/dvb/dvb.h +++ b/lib/dvb/dvb.h @@ -7,7 +7,6 @@ #include #include -class eDVBChannel; class eDVBChannel; /* we do NOT handle resource conflicts here. instead, the allocateChannel @@ -138,10 +137,10 @@ class eDVBResourceManager: public iObject friend class eDVBChannel; RESULT addChannel(const eDVBChannelID &chid, eDVBChannel *ch); RESULT removeChannel(eDVBChannel *ch); - + Signal1 m_channelAdded; - Signal1 m_channelRemoved; - Signal1 m_channelRunning; + + bool canAllocateFrontend(ePtr &feparm); public: eDVBResourceManager(); virtual ~eDVBResourceManager(); @@ -156,15 +155,15 @@ public: errNoDemux = -2, errChidNotFound = -3 }; - + /* allocate channel... */ RESULT allocateChannel(const eDVBChannelID &channelid, eUsePtr &channel); RESULT allocateRawChannel(eUsePtr &channel, int frontend_index); RESULT allocatePVRChannel(eUsePtr &channel); RESULT connectChannelAdded(const Slot1 &channelAdded, ePtr &connection); - RESULT connectChannelRemoved(const Slot1 &channelRemoved, ePtr &connection); - RESULT connectChannelRunning(const Slot1 &channelRemoved, ePtr &connection); + + bool canAllocateChannel(const eDVBChannelID &channelid, const eDVBChannelID &ignore); }; class eFilePushThread; @@ -198,6 +197,7 @@ public: there is an unknown amount of buffers in between */ RESULT seekToPosition(iDVBDemux *decoding_demux, const off_t &off); + int getUseCount() { return m_use_count; } private: ePtr m_frontend; ePtr m_demux, m_decoder_demux;