diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2007-01-07 14:46:14 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2007-01-07 14:46:14 +0100 |
commit | 87dd5139ff6666d64e7e343bcff632b342c4c814 (patch) | |
tree | c2b8f2f437a09e1ad2f740adc574f3f1833d8fe3 /dvbci.h | |
parent | b4cab10eca558f6d90fa25a2a6e7fc3d90fac508 (diff) | |
download | vdr-87dd5139ff6666d64e7e343bcff632b342c4c814.tar.gz vdr-87dd5139ff6666d64e7e343bcff632b342c4c814.tar.bz2 |
CAM handling refactored; multiple recordings with one CAM; automatic CAM selection1.5.0
Diffstat (limited to 'dvbci.h')
-rw-r--r-- | dvbci.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/dvbci.h b/dvbci.h new file mode 100644 index 00000000..e4c740a2 --- /dev/null +++ b/dvbci.h @@ -0,0 +1,31 @@ +/* + * dvbci.h: Common Interface for DVB devices + * + * See the main source file 'vdr.c' for copyright information and + * how to reach the author. + * + * $Id: dvbci.h 1.1 2007/01/07 14:38:00 kls Exp $ + */ + +#ifndef __DVBCI_H +#define __DVBCI_H + +#include "ci.h" + +class cDvbCiAdapter : public cCiAdapter { +private: + cDevice *device; + int fd; +protected: + virtual int Read(uint8_t *Buffer, int MaxLength); + virtual void Write(const uint8_t *Buffer, int Length); + virtual bool Reset(int Slot); + virtual eModuleStatus ModuleStatus(int Slot); + virtual bool Assign(cDevice *Device, bool Query = false); + cDvbCiAdapter(cDevice *Device, int Fd); +public: + virtual ~cDvbCiAdapter(); + static cDvbCiAdapter *CreateCiAdapter(cDevice *Device, int Fd); + }; + +#endif //__DVBCI_H |