X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fdvb%2Fdvb.h;fp=lib%2Fdvb%2Fdvb.h;h=bceb9ad0409f49a77dc1ad6cab057e14001afbc2;hp=04543ae22b74b689684e2aa7a9dd59296433a1fb;hb=6696994da0d59a3b483eda65d1dc8b1a9df67cc0;hpb=bfb6b4765a85a65047655ad4282756ca31229c3e diff --git a/lib/dvb/dvb.h b/lib/dvb/dvb.h index 04543ae..bceb9ad 100644 --- a/lib/dvb/dvb.h +++ b/lib/dvb/dvb.h @@ -107,7 +107,7 @@ public: virtual RESULT getDemux(ePtr &demux, int nr) = 0; virtual int getNumFrontends() = 0; - virtual RESULT getFrontend(ePtr &fe, int nr) = 0; + virtual RESULT getFrontend(ePtr &fe, int nr, bool simulate=false) = 0; }; class eDVBAdapterLinux: public iDVBAdapter @@ -120,12 +120,12 @@ public: RESULT getDemux(ePtr &demux, int nr); int getNumFrontends(); - RESULT getFrontend(ePtr &fe, int nr); + RESULT getFrontend(ePtr &fe, int nr, bool simulate=false); static int exist(int nr); private: int m_nr; - eSmartPtrList m_frontend; + eSmartPtrList m_frontend, m_simulate_frontend; eSmartPtrList m_demux; }; #endif // SWIG @@ -138,7 +138,7 @@ class eDVBResourceManager: public iObject, public Object eSmartPtrList m_adapter; eSmartPtrList m_demux; - eSmartPtrList m_frontend; + eSmartPtrList m_frontend, m_simulate_frontend; void addAdapter(iDVBAdapter *adapter); struct active_channel @@ -150,7 +150,7 @@ class eDVBResourceManager: public iObject, public Object active_channel(const eDVBChannelID &chid, eDVBChannel *ch) : m_channel_id(chid), m_channel(ch) { } }; - std::list m_active_channels; + std::list m_active_channels, m_active_simulate_channels; ePtr m_list; ePtr m_sec; @@ -191,7 +191,7 @@ public: int canAllocateChannel(const eDVBChannelID &channelid, const eDVBChannelID &ignore); /* allocate channel... */ - RESULT allocateChannel(const eDVBChannelID &channelid, eUsePtr &channel); + RESULT allocateChannel(const eDVBChannelID &channelid, eUsePtr &channel, bool simulate=false); RESULT allocatePVRChannel(eUsePtr &channel); static RESULT getInstance(ePtr &); @@ -202,7 +202,7 @@ public: there might be a priority given to certain frontend/chid combinations. this will be evaluated here. */ - RESULT allocateFrontend(ePtr &fe, ePtr &feparm); + RESULT allocateFrontend(ePtr &fe, ePtr &feparm, bool simulate=false); RESULT allocateFrontendByIndex(ePtr &fe, int slot_index); /* allocate a demux able to filter on the selected frontend. */