mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
New SVDRP command SCAN
This commit is contained in:
parent
e4960d169e
commit
48dc6d8710
2
HISTORY
2
HISTORY
@ -2596,3 +2596,5 @@ Video Disk Recorder Revision History
|
|||||||
ones.
|
ones.
|
||||||
- The "Red" button in the "Setup/EPG" menu can now be used to force an EPG
|
- The "Red" button in the "Setup/EPG" menu can now be used to force an EPG
|
||||||
scan on a single DVB card system (see MANUAL for details).
|
scan on a single DVB card system (see MANUAL for details).
|
||||||
|
- The new SVDRP command 'SCAN' can be used to force an EPG scan on a single
|
||||||
|
DVB card system (see MANUAL under Setup/EPG for details).
|
||||||
|
13
svdrp.c
13
svdrp.c
@ -10,7 +10,7 @@
|
|||||||
* and interact with the Video Disk Recorder - or write a full featured
|
* and interact with the Video Disk Recorder - or write a full featured
|
||||||
* graphical interface that sits on top of an SVDRP connection.
|
* 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"
|
#include "svdrp.h"
|
||||||
@ -29,6 +29,7 @@
|
|||||||
#include "channels.h"
|
#include "channels.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "device.h"
|
#include "device.h"
|
||||||
|
#include "eitscan.h"
|
||||||
#include "keys.h"
|
#include "keys.h"
|
||||||
#include "remote.h"
|
#include "remote.h"
|
||||||
#include "timers.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"
|
" 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"
|
" by itself terminates the input and starts processing of the data (all\n"
|
||||||
" entered data is buffered until the terminating '.' is seen).",
|
" 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"
|
"STAT disk\n"
|
||||||
" Return information about disk usage (total, free, percent).",
|
" Return information about disk usage (total, free, percent).",
|
||||||
"UPDT <settings>\n"
|
"UPDT <settings>\n"
|
||||||
@ -954,6 +958,12 @@ void cSVDRP::CmdPUTE(const char *Option)
|
|||||||
DELETENULL(PUTEhandler);
|
DELETENULL(PUTEhandler);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void cSVDRP::CmdSCAN(const char *Option)
|
||||||
|
{
|
||||||
|
EITScanner.ForceScan();
|
||||||
|
Reply(250, "EPG scan triggered");
|
||||||
|
}
|
||||||
|
|
||||||
void cSVDRP::CmdSTAT(const char *Option)
|
void cSVDRP::CmdSTAT(const char *Option)
|
||||||
{
|
{
|
||||||
if (*Option) {
|
if (*Option) {
|
||||||
@ -1062,6 +1072,7 @@ void cSVDRP::Execute(char *Cmd)
|
|||||||
else if (CMD("NEWT")) CmdNEWT(s);
|
else if (CMD("NEWT")) CmdNEWT(s);
|
||||||
else if (CMD("NEXT")) CmdNEXT(s);
|
else if (CMD("NEXT")) CmdNEXT(s);
|
||||||
else if (CMD("PUTE")) CmdPUTE(s);
|
else if (CMD("PUTE")) CmdPUTE(s);
|
||||||
|
else if (CMD("SCAN")) CmdSCAN(s);
|
||||||
else if (CMD("STAT")) CmdSTAT(s);
|
else if (CMD("STAT")) CmdSTAT(s);
|
||||||
else if (CMD("UPDT")) CmdUPDT(s);
|
else if (CMD("UPDT")) CmdUPDT(s);
|
||||||
else if (CMD("VOLU")) CmdVOLU(s);
|
else if (CMD("VOLU")) CmdVOLU(s);
|
||||||
|
3
svdrp.h
3
svdrp.h
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: svdrp.h 1.19 2003/04/27 14:09:59 kls Exp $
|
* $Id: svdrp.h 1.20 2004/01/17 15:41:52 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __SVDRP_H
|
#ifndef __SVDRP_H
|
||||||
@ -73,6 +73,7 @@ private:
|
|||||||
void CmdNEWT(const char *Option);
|
void CmdNEWT(const char *Option);
|
||||||
void CmdNEXT(const char *Option);
|
void CmdNEXT(const char *Option);
|
||||||
void CmdPUTE(const char *Option);
|
void CmdPUTE(const char *Option);
|
||||||
|
void CmdSCAN(const char *Option);
|
||||||
void CmdSTAT(const char *Option);
|
void CmdSTAT(const char *Option);
|
||||||
void CmdUPDT(const char *Option);
|
void CmdUPDT(const char *Option);
|
||||||
void CmdVOLU(const char *Option);
|
void CmdVOLU(const char *Option);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user