summaryrefslogtreecommitdiff
path: root/epg.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-08-25 11:31:35 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2012-08-25 11:31:35 +0200
commit08ab22f987a7ce7489ac31e8e0d37c9054651ba8 (patch)
treefb0b9942646ab7743903d4d6091c146ef2653f58 /epg.c
parent3f03cfa14d53c17f74802d17797c39d4e2cb2856 (diff)
downloadvdr-08ab22f987a7ce7489ac31e8e0d37c9054651ba8.tar.gz
vdr-08ab22f987a7ce7489ac31e8e0d37c9054651ba8.tar.bz2
Added IsUpdate() to the EPG handler interface
Diffstat (limited to 'epg.c')
-rw-r--r--epg.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/epg.c b/epg.c
index d47c4a37..8ebfb6e7 100644
--- a/epg.c
+++ b/epg.c
@@ -7,7 +7,7 @@
* Original version (as used in VDR before 1.3.0) written by
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
*
- * $Id: epg.c 2.17 2012/06/04 10:26:10 kls Exp $
+ * $Id: epg.c 2.18 2012/08/25 11:10:29 kls Exp $
*/
#include "epg.h"
@@ -1340,6 +1340,15 @@ bool cEpgHandlers::HandledExternally(const cChannel *Channel)
return false;
}
+bool cEpgHandlers::IsUpdate(tEventID EventID, time_t StartTime, uchar TableID, uchar Version)
+{
+ for (cEpgHandler *eh = First(); eh; eh = Next(eh)) {
+ if (eh->IsUpdate(EventID, StartTime, TableID, Version))
+ return true;
+ }
+ return false;
+}
+
void cEpgHandlers::SetEventID(cEvent *Event, tEventID EventID)
{
for (cEpgHandler *eh = First(); eh; eh = Next(eh)) {