summaryrefslogtreecommitdiff
path: root/epg.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-01-09 15:53:59 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2004-01-09 15:53:59 +0100
commit6484771bf61aeabbb0d9fc28e257b50fdf2e205b (patch)
treedc88cf0849cdcdea9d35397a2ae15f9d3b101ad4 /epg.c
parentbd38a10ff94787d463bc9a45b1b27d6c502f5c77 (diff)
downloadvdr-6484771bf61aeabbb0d9fc28e257b50fdf2e205b.tar.gz
vdr-6484771bf61aeabbb0d9fc28e257b50fdf2e205b.tar.bz2
Added support for selecting preferred EPG languages
Diffstat (limited to 'epg.c')
-rw-r--r--epg.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/epg.c b/epg.c
index 69130145..19f1c7f4 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 1.3 2004/01/04 15:20:42 kls Exp $
+ * $Id: epg.c 1.4 2004/01/09 15:22:18 kls Exp $
*/
#include "epg.h"
@@ -486,6 +486,12 @@ bool cSchedule::SetFollowingEvent(cEvent *Event)
return true;
}
+void cSchedule::ResetVersions(void)
+{
+ for (cEvent *p = events.First(); p; p = events.Next(p))
+ p->SetVersion(0xFF);
+}
+
void cSchedule::Cleanup(void)
{
Cleanup(time(NULL));
@@ -613,6 +619,16 @@ void cSchedules::Cleanup(bool Force)
}
}
+void cSchedules::ResetVersions(void)
+{
+ cSchedulesLock SchedulesLock(true);
+ cSchedules *s = (cSchedules *)Schedules(SchedulesLock);
+ if (s) {
+ for (cSchedule *Schedule = s->First(); Schedule; Schedule = s->Next(Schedule))
+ Schedule->ResetVersions();
+ }
+}
+
bool cSchedules::ClearAll(void)
{
cSchedulesLock SchedulesLock(true, 1000);