summaryrefslogtreecommitdiff
path: root/device.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2020-06-27 10:24:46 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2020-06-27 10:24:46 +0200
commita526eee1651ca643a3f3c88a0c852a43261a7ebb (patch)
treecba7a2f1b987c041e3a17966e228566a8f459bf6 /device.h
parent848c65fe4f56b95bf26035296f77b091a16ae704 (diff)
downloadvdr-2.4.3.tar.gz
vdr-2.4.3.tar.bz2
Fixed the 'else if' branch in cDevice::GetDeviceForTransponder(), which hasn't been active since version 1.7.292.4.3
Diffstat (limited to 'device.h')
-rw-r--r--device.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/device.h b/device.h
index bebc2d94..df0732f8 100644
--- a/device.h
+++ b/device.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: device.h 4.16 2020/06/10 14:52:43 kls Exp $
+ * $Id: device.h 4.17 2020/06/27 10:24:46 kls Exp $
*/
#ifndef __DEVICE_H
@@ -211,6 +211,11 @@ protected:
///< device (On = false), it should do so in this function.
///< A derived class must call the MakePrimaryDevice() function of its
///< base class.
+ virtual bool IsBonded(void) const { return false; }
+ ///< Returns true if this device is bonded to an other device.
+ ///< Only implemented by cDvbDevice and used in GetDeviceForTransponder().
+ ///< May be dropped in a future version, if a better solution is found.
+ ///< Do not use otherwise!
public:
bool IsPrimaryDevice(void) const { return this == primaryDevice && HasDecoder(); }
int CardIndex(void) const { return cardIndex; }