diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-08-25 10:49:02 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-08-25 10:49:02 +0200 |
commit | 2d487365a12c857a4c1fd424ce900f7b35855ba1 (patch) | |
tree | 412a11a0d26acc224895d520e1f0089975426de8 /svdrp.c | |
parent | e63b279d967564b847f19dbd694dab9a577acfb1 (diff) | |
download | vdr-2d487365a12c857a4c1fd424ce900f7b35855ba1.tar.gz vdr-2d487365a12c857a4c1fd424ce900f7b35855ba1.tar.bz2 |
New SVDRP command CLRE
Diffstat (limited to 'svdrp.c')
-rw-r--r-- | svdrp.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -10,7 +10,7 @@ * and interact with the Video Disk Recorder - or write a full featured * graphical interface that sits on top of an SVDRP connection. * - * $Id: svdrp.c 1.39 2002/08/11 12:01:28 kls Exp $ + * $Id: svdrp.c 1.40 2002/08/25 10:40:46 kls Exp $ */ #include "svdrp.h" @@ -174,6 +174,8 @@ const char *HelpPages[] = { " Switch channel up, down or to the given channel number or name.\n" " Without option (or after successfully switching to the channel)\n" " it returns the current channel number and name.", + "CLRE\n" + " Clear the entire EPG list.", "DELC <number>\n" " Delete channel.", "DELR <number>\n" @@ -438,6 +440,12 @@ void cSVDRP::CmdCHAN(const char *Option) Reply(550, "Unable to find channel \"%d\"", cDevice::CurrentChannel()); } +void cSVDRP::CmdCLRE(const char *Option) +{ + cSIProcessor::Clear(); + Reply(250, "EPG data cleared"); +} + void cSVDRP::CmdDELC(const char *Option) { //TODO combine this with menu action (timers must be updated) @@ -967,6 +975,7 @@ void cSVDRP::Execute(char *Cmd) *s++ = 0; s = skipspace(s); if (CMD("CHAN")) CmdCHAN(s); + else if (CMD("CLRE")) CmdCLRE(s); else if (CMD("DELC")) CmdDELC(s); else if (CMD("DELR")) CmdDELR(s); else if (CMD("DELT")) CmdDELT(s); |