diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2010-02-06 14:43:42 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2010-02-06 14:43:42 +0100 |
commit | f7831543b31ba77702ef0ea19e6ebd3f5baa2724 (patch) | |
tree | 27b5cb48d1da1aceb963536639493fbd63a71fe6 /dvbdevice.c | |
parent | 644a9f07f26df58b7d79cea8ea961c2232a092be (diff) | |
download | vdr-f7831543b31ba77702ef0ea19e6ebd3f5baa2724.tar.gz vdr-f7831543b31ba77702ef0ea19e6ebd3f5baa2724.tar.bz2 |
Implemented cDevice::GetCurrentlyTunedTransponder()
Diffstat (limited to 'dvbdevice.c')
-rw-r--r-- | dvbdevice.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/dvbdevice.c b/dvbdevice.c index 05b89fc1..373628b6 100644 --- a/dvbdevice.c +++ b/dvbdevice.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: dvbdevice.c 2.25 2010/02/06 13:44:08 kls Exp $ + * $Id: dvbdevice.c 2.26 2010/02/06 14:38:44 kls Exp $ */ #include "dvbdevice.h" @@ -48,6 +48,7 @@ private: public: cDvbTuner(int Fd_Frontend, int Adapter, int Frontend, fe_delivery_system FrontendType); virtual ~cDvbTuner(); + const cChannel *GetTransponder(void) const { return &channel; } bool IsTunedTo(const cChannel *Channel) const; void Set(const cChannel *Channel); bool Locked(int TimeoutMs = 0); @@ -655,6 +656,11 @@ int cDvbDevice::NumProvidedSystems(void) const return numProvidedSystems; } +const cChannel *cDvbDevice::GetCurrentlyTunedTransponder(void) const +{ + return dvbTuner->GetTransponder(); +} + bool cDvbDevice::IsTunedToTransponder(const cChannel *Channel) { return dvbTuner->IsTunedTo(Channel); |