From 8a282ef267b73c4d4a6f03e174946fd23692f58e Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Wed, 10 Jun 2020 14:52:43 +0200 Subject: Added a device hook for detecting whether a device provides EIT data --- PLUGINS.html | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'PLUGINS.html') diff --git a/PLUGINS.html b/PLUGINS.html index 7e9bc286..39b5031e 100644 --- a/PLUGINS.html +++ b/PLUGINS.html @@ -2025,8 +2025,9 @@ operator! Device hooks

VDR has builtin facilities that select which device is able to provide a given -transponder. However, there may be situations where the setup is so special -that it requires considerations that exceed the scope of the core VDR code. +transponder, or, which device may provide EIT data. However, there may be +situations where the setup is so special that it requires considerations that +exceed the scope of the core VDR code. This is where device hooks can be used.

@@ -2034,6 +2035,7 @@ class cMyDeviceHook : public cDeviceHook {
 public:
   cMyDeviceHook(void);
   virtual bool DeviceProvidesTransponder(const cDevice *Device, const cChannel *Channel) const;
+  virtual bool DeviceProvidesEIT(const cDevice *Device) const;
   };
 

@@ -2050,6 +2052,19 @@ bool cMyDeviceHook::DeviceProvidesTransponder(const cDevice *Device, const cChan }

+In its DeviceProvidesEIT() function the device hook can take +whatever actions are necessary to determine whether the given Device can +provide EIT data, as in + +

+bool cMyDeviceHook::DeviceProvidesEIT(const cDevice *Device) const
+{
+  if (condition where Device can't provide EIT data)
+     return false;
+  return true;
+}
+

+ A plugin that creates a derived cDeviceHook shall do so in its Initialize() function, as in -- cgit v1.2.3