summaryrefslogtreecommitdiff
path: root/device.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-03-06 12:32:38 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2012-03-06 12:32:38 +0100
commit61e420bdf6159af3c31023ae2230f6743cf6d8d3 (patch)
tree2d120ffeb4e50bd5ad7f10d025ee401fbe497793 /device.h
parenta57acf570d87e383fd6d89b2ac80087152792d2e (diff)
downloadvdr-61e420bdf6159af3c31023ae2230f6743cf6d8d3.tar.gz
vdr-61e420bdf6159af3c31023ae2230f6743cf6d8d3.tar.bz2
Fixed switching devices to the transponders of VPS recordings in case there are only bonded devices
Diffstat (limited to 'device.h')
-rw-r--r--device.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/device.h b/device.h
index 23aea970..0d9ac3ac 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 2.36 2012/03/02 10:23:13 kls Exp $
+ * $Id: device.h 2.37 2012/03/06 12:13:46 kls Exp $
*/
#ifndef __DEVICE_H
@@ -109,7 +109,6 @@ private:
static int useDevice;
static cDevice *device[MAXDEVICES];
static cDevice *primaryDevice;
- static cDevice *avoidDevice;
public:
static int NumDevices(void) { return numDevices; }
///< Returns the total number of devices.
@@ -158,9 +157,11 @@ public:
///< in order to just determine whether a device is available for the given
///< Channel.
///< See also ProvidesChannel().
- static void SetAvoidDevice(cDevice *Device) { avoidDevice = Device; }
- ///< Sets the given Device to be temporarily avoided in the next call to
- ///< GetDevice(const cChannel, int, bool).
+ static cDevice *GetDeviceForTransponder(const cChannel *Channel, int Priority);
+ ///< Returns a device that is not currently "occupied" and can be tuned to
+ ///< the transponder of the given Channel, without disturbing any receiver
+ ///< at priorities higher or equal to Priority.
+ ///< If no such device is currently available, NULL will be returned.
static void Shutdown(void);
///< Closes down all devices.
///< Must be called at the end of the program.