diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2011-12-04 12:45:26 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2011-12-04 12:45:26 +0100 |
commit | a49ce434f6152a4431b0dd717f4070dc0da401ef (patch) | |
tree | bb1329cf29c377e8424fc1e538ed25110f095c93 /config.h | |
parent | a964269fe9080463cc87aba7b454b6b06b7f8677 (diff) | |
download | vdr-a49ce434f6152a4431b0dd717f4070dc0da401ef.tar.gz vdr-a49ce434f6152a4431b0dd717f4070dc0da401ef.tar.bz2 |
Implemented "Device Bonding"
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 22 |
1 files changed, 21 insertions, 1 deletions
@@ -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); |