diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-01-17 15:41:52 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-01-17 15:41:52 +0100 |
commit | 48dc6d871019762400fcdabe4f30f7e61b347d34 (patch) | |
tree | 10e10d0c1060ba9c176b46c1cfeba685cf0edca0 /svdrp.c | |
parent | e4960d169e8f1184e571ab60df39e1ab2e584eb6 (diff) | |
download | vdr-48dc6d871019762400fcdabe4f30f7e61b347d34.tar.gz vdr-48dc6d871019762400fcdabe4f30f7e61b347d34.tar.bz2 |
New SVDRP command SCAN
Diffstat (limited to 'svdrp.c')
-rw-r--r-- | svdrp.c | 13 |
1 files changed, 12 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.57 2003/12/28 10:09:30 kls Exp $ + * $Id: svdrp.c 1.58 2004/01/17 15:41:52 kls Exp $ */ #include "svdrp.h" @@ -29,6 +29,7 @@ #include "channels.h" #include "config.h" #include "device.h" +#include "eitscan.h" #include "keys.h" #include "remote.h" #include "timers.h" @@ -251,6 +252,9 @@ const char *HelpPages[] = { " format defined in vdr(5) for the 'epg.data' file. A '.' on a line\n" " by itself terminates the input and starts processing of the data (all\n" " entered data is buffered until the terminating '.' is seen).", + "SCAN\n" + " Forces an EPG scan. If this is a single DVB device system, the scan\n" + " will be done on the primary device unless it is currently recording.", "STAT disk\n" " Return information about disk usage (total, free, percent).", "UPDT <settings>\n" @@ -954,6 +958,12 @@ void cSVDRP::CmdPUTE(const char *Option) DELETENULL(PUTEhandler); } +void cSVDRP::CmdSCAN(const char *Option) +{ + EITScanner.ForceScan(); + Reply(250, "EPG scan triggered"); +} + void cSVDRP::CmdSTAT(const char *Option) { if (*Option) { @@ -1062,6 +1072,7 @@ void cSVDRP::Execute(char *Cmd) else if (CMD("NEWT")) CmdNEWT(s); else if (CMD("NEXT")) CmdNEXT(s); else if (CMD("PUTE")) CmdPUTE(s); + else if (CMD("SCAN")) CmdSCAN(s); else if (CMD("STAT")) CmdSTAT(s); else if (CMD("UPDT")) CmdUPDT(s); else if (CMD("VOLU")) CmdVOLU(s); |