summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Hanisch <dvb@flensrocker.de>2013-12-15 14:05:37 (GMT)
committerLars Hanisch <dvb@flensrocker.de>2013-12-15 14:05:37 (GMT)
commita674acc930d743359bed48df140b29070c6f19e7 (patch)
treefede26cf2495256648f9b8b53f1d3c0fae4670c5
parent4babf398d8271b2493623fb261a47d99064e89cc (diff)
downloadvdr-plugin-dynamite-a674acc930d743359bed48df140b29070c6f19e7.tar.gz
vdr-plugin-dynamite-a674acc930d743359bed48df140b29070c6f19e7.tar.bz2
add new virutal device functions from vdr 2.1.2
-rw-r--r--dynamicdevice.c9
-rw-r--r--dynamicdevice.h3
2 files changed, 12 insertions, 0 deletions
diff --git a/dynamicdevice.c b/dynamicdevice.c
index 21768c5..98efd37 100644
--- a/dynamicdevice.c
+++ b/dynamicdevice.c
@@ -909,6 +909,15 @@ int cDynamicDevice::NumProvidedSystems(void) const
return cDevice::NumProvidedSystems();
}
+#if VDRVERSNUM > 20101
+const cPositioner *cDynamicDevice::Positioner(void) const
+{
+ if (subDevice)
+ return subDevice->Positioner();
+ return cDevice::Positioner();
+}
+#endif
+
int cDynamicDevice::SignalStrength(void) const
{
if (subDevice)
diff --git a/dynamicdevice.h b/dynamicdevice.h
index fa35795..0b39ec7 100644
--- a/dynamicdevice.h
+++ b/dynamicdevice.h
@@ -107,6 +107,9 @@ public:
virtual bool ProvidesTransponderExclusively(const cChannel *Channel) const;
virtual bool ProvidesChannel(const cChannel *Channel, int Priority = IDLEPRIORITY, bool *NeedsDetachReceivers = NULL) const;
virtual int NumProvidedSystems(void) const;
+#if VDRVERSNUM > 20101
+ virtual const cPositioner *Positioner(void) const;
+#endif
virtual int SignalStrength(void) const;
virtual int SignalQuality(void) const;
virtual const cChannel *GetCurrentlyTunedTransponder(void) const;