diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2018-10-29 12:16:35 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2018-10-29 12:16:35 +0100 |
commit | cbc77f1f25fb6c8b5e6f7064f4ea98ac8770f12d (patch) | |
tree | 59f8416cd30d8a8057b026ea486e12c60ef16ba7 /dvbdevice.h | |
parent | bcee8ad43dc56ce905f911fba55b245fe93f5af9 (diff) | |
download | vdr-cbc77f1f25fb6c8b5e6f7064f4ea98ac8770f12d.tar.gz vdr-cbc77f1f25fb6c8b5e6f7064f4ea98ac8770f12d.tar.bz2 |
Added support for DVB devices with more than one frontend that all use the same dvr and demux
Diffstat (limited to 'dvbdevice.h')
-rw-r--r-- | dvbdevice.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/dvbdevice.h b/dvbdevice.h index 0490a44f..530e8ba7 100644 --- a/dvbdevice.h +++ b/dvbdevice.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: dvbdevice.h 4.4 2017/05/09 11:24:47 kls Exp $ + * $Id: dvbdevice.h 4.5 2018/10/20 11:39:11 kls Exp $ */ #ifndef __DVBDEVICE_H @@ -67,8 +67,6 @@ enum { // --- End of definitions for older DVB API versions ------------------------- -#define MAXDELIVERYSYSTEMS 8 - #define DEV_VIDEO "/dev/video" #define DEV_DVB_BASE "/dev/dvb" #define DEV_DVB_ADAPTER "adapter" @@ -162,12 +160,12 @@ public: class cDvbTuner; +cString DvbName(const char *Name, int Adapter, int Frontend); +int DvbOpen(const char *Name, int Adapter, int Frontend, int Mode, bool ReportError = false); + /// The cDvbDevice implements a DVB device which can be accessed through the Linux DVB driver API. class cDvbDevice : public cDevice { -protected: - static cString DvbName(const char *Name, int Adapter, int Frontend); - static int DvbOpen(const char *Name, int Adapter, int Frontend, int Mode, bool ReportError = false); private: static bool Exists(int Adapter, int Frontend); ///< Checks whether the given adapter/frontend exists. @@ -182,16 +180,11 @@ public: protected: int adapter, frontend; private: - dvb_frontend_info frontendInfo; - int deliverySystems[MAXDELIVERYSYSTEMS]; - int numDeliverySystems; - int numModulations; int fd_dvr, fd_ca; bool checkTsBuffer; static cMutex bondMutex; cDvbDevice *bondedDevice; mutable bool needsDetachBondedReceivers; - bool QueryDeliverySystems(int fd_frontend); public: cDvbDevice(int Adapter, int Frontend); virtual ~cDvbDevice(); |