diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-03-06 12:32:38 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-03-06 12:32:38 +0100 |
commit | 61e420bdf6159af3c31023ae2230f6743cf6d8d3 (patch) | |
tree | 2d120ffeb4e50bd5ad7f10d025ee401fbe497793 /device.h | |
parent | a57acf570d87e383fd6d89b2ac80087152792d2e (diff) | |
download | vdr-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.h | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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. |