diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2003-12-25 12:50:22 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2003-12-25 12:50:22 +0100 |
commit | 36c9c8811de7ee0c5a208627dcecf92445b051b4 (patch) | |
tree | 0a617d16041bd6d9b4c5e8734d2c6ec7916102d2 /epg.c | |
parent | 6c4e6cc666da440c2f09e4cab9ab9b8ca99e5213 (diff) | |
download | vdr-36c9c8811de7ee0c5a208627dcecf92445b051b4.tar.gz vdr-36c9c8811de7ee0c5a208627dcecf92445b051b4.tar.bz2 |
Now using the 'version number' of EPG events to avoid unnecessary work
Diffstat (limited to 'epg.c')
-rw-r--r-- | epg.c | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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.1 2003/12/22 13:07:32 kls Exp $ + * $Id: epg.c 1.2 2003/12/25 12:47:26 kls Exp $ */ #include "epg.h" @@ -21,6 +21,7 @@ cEvent::cEvent(tChannelID ChannelID, u_int16_t EventID) channelID = ChannelID; eventID = EventID; tableID = 0; + version = 0xFF; // actual version numbers are 0..31 isPresent = isFollowing = false; title = NULL; shortText = NULL; @@ -37,11 +38,21 @@ cEvent::~cEvent() free(description); } +void cEvent::SetEventID(u_int16_t EventID) +{ + eventID = EventID; +} + void cEvent::SetTableID(uchar TableID) { tableID = TableID; } +void cEvent::SetVersion(uchar Version) +{ + version = Version; +} + void cEvent::SetIsPresent(bool IsPresent) { isPresent = IsPresent; |