diff options
Diffstat (limited to 'service.c')
-rw-r--r-- | service.c | 44 |
1 files changed, 0 insertions, 44 deletions
@@ -59,47 +59,3 @@ void cEpgTimer::setVdr(const char* name, const char* uuid, int running) if (!isEmpty(vdrUuid) && strcmp(vdrUuid, Epg2VdrConfig.uuid) != 0) local = no; } - -//*************************************************************************** -// Class cEpgEvent -//*************************************************************************** - -cEpgEvent::cEpgEvent(tEventID EventID) - : cEpgEvent_Interface_V1(EventID) -{ - -} - -bool cEpgEvent::Read(FILE *f) -{ - char *s; - int line = 0; - cReadLine ReadLine; - - while ((s = ReadLine.Read(f)) != NULL) { - line++; - char *t = skipspace(s + 1); - switch (*s) { - case 'E': { - unsigned int EventID; - time_t StartTime; - int Duration; - unsigned int TableID = 0; - unsigned int Version = 0xFF; // actual value is ignored - int n = sscanf(t, "%u %ld %d %X %X", &EventID, &StartTime, &Duration, &TableID, &Version); - if (n >= 3 && n <= 5) { - SetTableID(TableID); - SetStartTime(StartTime); - SetDuration(Duration); - } - break; - } - default: if (!Parse(s)) { - esyslog("ERROR: EPG data problem in line %d", line); - return false; - } - } - } - - return true; -} |