summaryrefslogtreecommitdiff
path: root/device.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-12-22 13:29:24 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2003-12-22 13:29:24 +0100
commit7ff59171e3f907a5584b72f0f8588ed65f22c0bd (patch)
tree801b1b65840c50a4f1d8abea806fa5c180051df1 /device.h
parent84b99ea81095f421ec049dd6b5bd5f0f2fe679c1 (diff)
downloadvdr-7ff59171e3f907a5584b72f0f8588ed65f22c0bd.tar.gz
vdr-7ff59171e3f907a5584b72f0f8588ed65f22c0bd.tar.bz2
Changed section handling; replaced 'libdtv' with 'libsi'
Diffstat (limited to 'device.h')
-rw-r--r--device.h26
1 files changed, 25 insertions, 1 deletions
diff --git a/device.h b/device.h
index d73864f2..33b4ad80 100644
--- a/device.h
+++ b/device.h
@@ -4,13 +4,17 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: device.h 1.35 2003/11/07 13:15:45 kls Exp $
+ * $Id: device.h 1.36 2003/12/22 10:52:39 kls Exp $
*/
#ifndef __DEVICE_H
#define __DEVICE_H
#include "ci.h"
+#include "eit.h"
+#include "filter.h"
+#include "pat.h"
+#include "sections.h"
#include "thread.h"
#include "tools.h"
@@ -222,6 +226,26 @@ protected:
///< Type indicates some special types of PIDs, which the device may
///< need to set in a specific way.
+// Section filter facilities
+
+private:
+ cSectionHandler *sectionHandler;
+ cEitFilter *eitFilter;
+ cPatFilter *patFilter;
+protected:
+ void StartSectionHandler(void);
+ ///< A derived device that provides section data must call
+ ///< this function to actually set up the section handler.
+public:
+ virtual int OpenFilter(u_short Pid, u_char Tid, u_char Mask);
+ ///< Opens a file handle for the given filter data.
+ ///< A derived device that provides section data must
+ ///< implement this function.
+ void AttachFilter(cFilter *Filter);
+ ///< Attaches the given filter to this device.
+ void Detach(cFilter *Filter);
+ ///< Detaches the given filter from this device.
+
// Common Interface facilities:
protected: