summaryrefslogtreecommitdiff
path: root/device.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2008-02-23 13:19:10 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2008-02-23 13:19:10 +0100
commitedfe5829417bea8879bd2e45892b4465ea69b6eb (patch)
treefc4b20198c794682d0197e2e8b065d48198fd319 /device.h
parent1b1267674f2b1d632097e60f1284f6ba97b10e00 (diff)
downloadvdr-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.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/device.h b/device.h
index 376e43f0..06daa5ea 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 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.