X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/a33ff213255db7f59090f70235ec06c502e2a2ce..b47c326aad25626034d14ffb630628da2f0e8b97:/lib/dvb/dvb.h diff --git a/lib/dvb/dvb.h b/lib/dvb/dvb.h index 34c55492..bb9e2689 100644 --- a/lib/dvb/dvb.h +++ b/lib/dvb/dvb.h @@ -156,8 +156,8 @@ public: }; /* allocate channel... */ - RESULT allocateChannel(const eDVBChannelID &channelid, ePtr &channel); - RESULT allocateRawChannel(ePtr &channel); + RESULT allocateChannel(const eDVBChannelID &channelid, eUsePtr &channel); + RESULT allocateRawChannel(eUsePtr &channel); RESULT allocatePVRChannel(int caps); RESULT connectChannelAdded(const Slot1 &channelAdded, ePtr &connection); @@ -182,6 +182,11 @@ private: void frontendStateChanged(iDVBFrontend*fe); ePtr m_conn_frontendStateChanged; + + /* use count */ + oRefCount m_use_count; + void AddUse(); + void ReleaseUse(); public: eDVBChannel(eDVBResourceManager *mgr, eDVBAllocatedFrontend *frontend, eDVBAllocatedDemux *demux); virtual ~eDVBChannel();