From 64f23b27d945a85c06bf432b65e032ed0f745373 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Fri, 13 Jan 2012 11:41:04 +0100 Subject: [PATCH] Added member functions Adapter() and Frontend() to cDvbDevice --- CONTRIBUTORS | 1 + HISTORY | 2 ++ dvbdevice.h | 4 +++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 082723dd..fc5ee499 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -1123,6 +1123,7 @@ Rolf Ahrenberg for fixing cDvbSubtitleConverter::SetOsdData() for adding support for DVB-T2 to libsi for adding support for handling DVB-T2 transponders + for suggesting to add member functions Adapter() and Frontend() to cDvbDevice Ralf Klueber for reporting a bug in cutting a recording if there is only a single editing mark diff --git a/HISTORY b/HISTORY index 95ab357b..bac454fa 100644 --- a/HISTORY +++ b/HISTORY @@ -6820,3 +6820,5 @@ Video Disk Recorder Revision History that have a timer (thanks to Timo Eskola). - BIDI support now checks at runtime whether the system runs with UTF-8 (suggested by Torsten Lang). +- Added member functions Adapter() and Frontend() to cDvbDevice (suggested by + Rolf Ahrenberg). diff --git a/dvbdevice.h b/dvbdevice.h index 8e9b5c35..96dfa421 100644 --- a/dvbdevice.h +++ b/dvbdevice.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: dvbdevice.h 2.20 2012/01/11 12:08:49 kls Exp $ + * $Id: dvbdevice.h 2.21 2012/01/13 11:32:45 kls Exp $ */ #ifndef __DVBDEVICE_H @@ -134,6 +134,8 @@ private: public: cDvbDevice(int Adapter, int Frontend); virtual ~cDvbDevice(); + int Adapter(void) const { return adapter; } + int Frontend(void) const { return frontend; } virtual bool Ready(void); static bool BondDevices(const char *Bondings); ///< Bonds the devices as defined in the given Bondings string.