summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2011-12-04 12:45:26 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2011-12-04 12:45:26 +0100
commita49ce434f6152a4431b0dd717f4070dc0da401ef (patch)
treebb1329cf29c377e8424fc1e538ed25110f095c93 /config.h
parenta964269fe9080463cc87aba7b454b6b06b7f8677 (diff)
downloadvdr-a49ce434f6152a4431b0dd717f4070dc0da401ef.tar.gz
vdr-a49ce434f6152a4431b0dd717f4070dc0da401ef.tar.bz2
Implemented "Device Bonding"
Diffstat (limited to 'config.h')
-rw-r--r--config.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/config.h b/config.h
index ea167c05..73db58f0 100644
--- a/config.h
+++ b/config.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: config.h 2.35 2011/09/10 09:45:55 kls Exp $
+ * $Id: config.h 2.36 2011/12/03 14:19:52 kls Exp $
*/
#ifndef __CONFIG_H
@@ -61,6 +61,25 @@ public:
bool Accepts(in_addr_t Address);
};
+class cSatCableNumbers {
+private:
+ int size;
+ int *array;
+public:
+ cSatCableNumbers(int Size, const char *s = NULL);
+ ~cSatCableNumbers();
+ int Size(void) const { return size; }
+ int *Array(void) { return array; }
+ bool FromString(const char *s);
+ cString ToString(void);
+ int FirstDeviceIndex(int DeviceIndex) const;
+ ///< Returns the first device index (starting at 0) that uses the same
+ ///< sat cable number as the device with the given DeviceIndex.
+ ///< If the given device does not use the same sat cable as any other device,
+ ///< or if the resulting value would be the same as DeviceIndex,
+ ///< or if DeviceIndex is out of range, -1 is returned.
+ };
+
template<class T> class cConfig : public cList<T> {
private:
char *fileName;
@@ -292,6 +311,7 @@ public:
int EmergencyExit;
int __EndData__;
cString InitialChannel;
+ cString DeviceBondings;
cSetup(void);
cSetup& operator= (const cSetup &s);
bool Load(const char *FileName);