summaryrefslogtreecommitdiff
path: root/dvbci.h
diff options
context:
space:
mode:
Diffstat (limited to 'dvbci.h')
-rw-r--r--dvbci.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/dvbci.h b/dvbci.h
new file mode 100644
index 0000000..1669c8c
--- /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 2006/11/26 11:19:42 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