From d19a3fc3b8e1cd492b756f9adef25805ac5177e6 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 11 Nov 2017 12:04:17 +0100 Subject: [PATCH] The new SVDRP commands 'LSTD' and 'PRIM' can be used to list all available devices and to switch the primary device --- CONTRIBUTORS | 1 + HISTORY | 4 +++- svdrp.c | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 55 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 4ab280a9..d6f9c54d 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -3373,6 +3373,7 @@ Thomas Reufer for adding cFont::Width(void) to get the default character width and allow stretched font drawing in high level OSDs for fixing regenerating the index of audio recordings + for implementing the SVDRP commands 'LSTD' and 'PRIM' Eike Sauer for reporting a problem with channels that need more than 5 TS packets for detecting diff --git a/HISTORY b/HISTORY index e9048065..081c3331 100644 --- a/HISTORY +++ b/HISTORY @@ -9162,7 +9162,7 @@ Video Disk Recorder Revision History a subdirectory. - SVDRP peering can now be limited to the default SVDRP host (see MANUAL for details). -2017-11-09: Version 2.3.9 +2017-11-11: Version 2.3.9 - Updated the Italian OSD texts (thanks to Diego Pierotto). - Updated the Finnish OSD texts (thanks to Rolf Ahrenberg). @@ -9196,3 +9196,5 @@ Video Disk Recorder Revision History in case there is more than one timer that will record that event. - Switching the primary device is no longer done via osSwitchDvb (which has been removed), but rather by the main program loop reacting to changes in Setup.PrimaryDVB. +- The new SVDRP commands 'LSTD' and 'PRIM' can be used to list all available devices + and to switch the primary device (thanks to Thomas Reufer). diff --git a/svdrp.c b/svdrp.c index 37695758..48a76dc6 100644 --- a/svdrp.c +++ b/svdrp.c @@ -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 4.22 2017/06/30 09:49:39 kls Exp $ + * $Id: svdrp.c 4.23 2017/11/11 12:04:17 kls Exp $ */ #include "svdrp.h" @@ -771,6 +771,10 @@ const char *HelpPages[] = { " separators. The channel number of a group separator is always 0.\n" " With ':ids' the channel ids are listed following the channel numbers.\n" " The special number 0 can be given to list the current channel.", + "LSTD\n" + " List all available devices. Each device is listed with its name and\n" + " whether it is currently the primary device ('P') or it implements a\n" + " decoder ('D') and can be used as output device.", "LSTE [ ] [ now | next | at