diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2008-02-23 13:19:10 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2008-02-23 13:19:10 +0100 |
commit | edfe5829417bea8879bd2e45892b4465ea69b6eb (patch) | |
tree | fc4b20198c794682d0197e2e8b065d48198fd319 /device.h | |
parent | 1b1267674f2b1d632097e60f1284f6ba97b10e00 (diff) | |
download | vdr-edfe5829417bea8879bd2e45892b4465ea69b6eb.tar.gz vdr-edfe5829417bea8879bd2e45892b4465ea69b6eb.tar.bz2 |
Attempting to stay on the current channel in case of an upcoming recording
Diffstat (limited to 'device.h')
-rw-r--r-- | device.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: device.h 1.90 2008/02/16 13:50:11 kls Exp $ + * $Id: device.h 1.91 2008/02/23 13:13:04 kls Exp $ */ #ifndef __DEVICE_H @@ -101,6 +101,7 @@ 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. @@ -145,6 +146,9 @@ public: ///< this device/CAM combination will be skipped in the next call to ///< GetDevice(). ///< 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 void Shutdown(void); ///< Closes down all devices. ///< Must be called at the end of the program. |