summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2020-06-10 14:52:43 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2020-06-10 14:52:43 +0200
commit8a282ef267b73c4d4a6f03e174946fd23692f58e (patch)
treea8b68b301ac4f8a01faa4a39b954dcdc7f6364c6 /device.c
parent709055980e6f6ed76399cdba032eb5094ec117f5 (diff)
downloadvdr-8a282ef267b73c4d4a6f03e174946fd23692f58e.tar.gz
vdr-8a282ef267b73c4d4a6f03e174946fd23692f58e.tar.bz2
Added a device hook for detecting whether a device provides EIT data
Diffstat (limited to 'device.c')
-rw-r--r--device.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/device.c b/device.c
index 147eecbf..d1bbbd07 100644
--- a/device.c
+++ b/device.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: device.c 4.30 2019/05/28 14:50:11 kls Exp $
+ * $Id: device.c 4.31 2020/06/10 14:52:43 kls Exp $
*/
#include "device.h"
@@ -58,6 +58,11 @@ bool cDeviceHook::DeviceProvidesTransponder(const cDevice *Device, const cChanne
return true;
}
+bool cDeviceHook::DeviceProvidesEIT(const cDevice *Device) const
+{
+ return true;
+}
+
// --- cDevice ---------------------------------------------------------------
// The minimum number of unknown PS1 packets to consider this a "pre 1.3.19 private stream":
@@ -718,6 +723,17 @@ bool cDevice::DeviceHooksProvidesTransponder(const cChannel *Channel) const
return true;
}
+bool cDevice::DeviceHooksProvidesEIT(void) const
+{
+ cDeviceHook *Hook = deviceHooks.First();
+ while (Hook) {
+ if (!Hook->DeviceProvidesEIT(this))
+ return false;
+ Hook = deviceHooks.Next(Hook);
+ }
+ return true;
+}
+
bool cDevice::ProvidesTransponder(const cChannel *Channel) const
{
return false;