diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-04-01 15:40:43 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-04-01 15:40:43 +0200 |
commit | 11eccf850f55363bf8a9bf9dd4926a0040227170 (patch) | |
tree | 16de321220517c33eefa627cb2caee471c63e04a /eit.c | |
parent | eb8bd1e754ae5df157a09791e10e3796dbce00dc (diff) | |
download | vdr-11eccf850f55363bf8a9bf9dd4926a0040227170.tar.gz vdr-11eccf850f55363bf8a9bf9dd4926a0040227170.tar.bz2 |
New SVDRP command LSTE to list the EPG data
Diffstat (limited to 'eit.c')
-rw-r--r-- | eit.c | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -13,7 +13,7 @@ * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * - * $Id: eit.c 1.14 2001/03/31 15:03:16 kls Exp $ + * $Id: eit.c 1.15 2001/04/01 15:36:09 kls Exp $ ***************************************************************************/ #include "eit.h" @@ -395,17 +395,17 @@ unsigned short cEventInfo::GetServiceID() const } /** */ -void cEventInfo::Dump(FILE *f) const +void cEventInfo::Dump(FILE *f, const char *Prefix) const { if (tTime + lDuration >= time(NULL)) { - fprintf(f, "E %u %ld %ld\n", uEventID, tTime, lDuration); + fprintf(f, "%sE %u %ld %ld\n", Prefix, uEventID, tTime, lDuration); if (!isempty(pTitle)) - fprintf(f, "T %s\n", pTitle); + fprintf(f, "%sT %s\n", Prefix, pTitle); if (!isempty(pSubtitle)) - fprintf(f, "S %s\n", pSubtitle); + fprintf(f, "%sS %s\n", Prefix, pSubtitle); if (!isempty(pExtendedDescription)) - fprintf(f, "D %s\n", pExtendedDescription); - fprintf(f, "e\n"); + fprintf(f, "%sD %s\n", Prefix, pExtendedDescription); + fprintf(f, "%se\n", Prefix); } } @@ -546,15 +546,15 @@ void cSchedule::Cleanup(time_t tTime) } /** */ -void cSchedule::Dump(FILE *f) const +void cSchedule::Dump(FILE *f, const char *Prefix) const { cChannel *channel = Channels.GetByServiceID(uServiceID); if (channel) { - fprintf(f, "C %u %s\n", uServiceID, channel->name); + fprintf(f, "%sC %u %s\n", Prefix, uServiceID, channel->name); for (cEventInfo *p = Events.First(); p; p = Events.Next(p)) - p->Dump(f); - fprintf(f, "c\n"); + p->Dump(f, Prefix); + fprintf(f, "%sc\n", Prefix); } } @@ -620,10 +620,10 @@ void cSchedules::Cleanup() } /** */ -void cSchedules::Dump(FILE *f) const +void cSchedules::Dump(FILE *f, const char *Prefix) const { for (cSchedule *p = First(); p; p = Next(p)) - p->Dump(f); + p->Dump(f, Prefix); } // --- cEIT ------------------------------------------------------------------ |