summaryrefslogtreecommitdiff
path: root/service.c
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2017-03-23 18:43:07 +0100
committerhorchi <vdr@jwendel.de>2017-03-23 18:43:07 +0100
commitea3f8c5d050192b06cab9eaf70e19b544c09b8c5 (patch)
treeae50c481e279be57bf396cb35ca2167c4e71ac24 /service.c
parent4ce37758aa8e7ff1faea6aea5d19c953f89247b7 (diff)
downloadvdr-plugin-epg2vdr-ea3f8c5d050192b06cab9eaf70e19b544c09b8c5.tar.gz
vdr-plugin-epg2vdr-ea3f8c5d050192b06cab9eaf70e19b544c09b8c5.tar.bz2
2017-03-22 version 1.1.53 (horchi)\n - change: Removed old patches for vdr < 2.2.0\n - added: Patch to extend cEvent with aux field like cTimer\n - change: Moved user defines from Makefile to Make.config\n\n1.1.54
Diffstat (limited to 'service.c')
-rw-r--r--service.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/service.c b/service.c
index f0185ff..1c34f98 100644
--- a/service.c
+++ b/service.c
@@ -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;
-}