summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2017-06-30 09:50:44 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2017-06-30 09:50:44 +0200
commit363dee6846bc7fb87db75f8826a7bcf608c83127 (patch)
tree1730f5070fccac36acf0eb6559ac16e232bffb2b /menu.c
parenta28d92d0490e75f2be7d7239ac491683e215c42f (diff)
downloadvdr-363dee6846bc7fb87db75f8826a7bcf608c83127.tar.gz
vdr-363dee6846bc7fb87db75f8826a7bcf608c83127.tar.bz2
SVDRP peering can now be limited to the default SVDRP host2.3.8
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/menu.c b/menu.c
index 98e0f1e9..c2c12dd8 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 4.40 2017/06/25 10:02:09 kls Exp $
+ * $Id: menu.c 4.41 2017/06/30 09:49:39 kls Exp $
*/
#include "menu.h"
@@ -4023,6 +4023,7 @@ void cMenuSetupReplay::Store(void)
class cMenuSetupMisc : public cMenuSetupBase {
private:
+ const char *svdrpPeeringModeTexts[3];
const char *showChannelNamesWithSourceTexts[3];
cStringList svdrpServerNames;
void Set(void);
@@ -4034,6 +4035,9 @@ public:
cMenuSetupMisc::cMenuSetupMisc(void)
{
SetMenuCategory(mcSetupMisc);
+ svdrpPeeringModeTexts[0] = tr("off");
+ svdrpPeeringModeTexts[1] = tr("any hosts");
+ svdrpPeeringModeTexts[2] = tr("only default host");
showChannelNamesWithSourceTexts[0] = tr("off");
showChannelNamesWithSourceTexts[1] = tr("type");
showChannelNamesWithSourceTexts[2] = tr("full");
@@ -4048,7 +4052,7 @@ void cMenuSetupMisc::Set(void)
Add(new cMenuEditIntItem( tr("Setup.Miscellaneous$Min. event timeout (min)"), &data.MinEventTimeout));
Add(new cMenuEditIntItem( tr("Setup.Miscellaneous$Min. user inactivity (min)"), &data.MinUserInactivity));
Add(new cMenuEditIntItem( tr("Setup.Miscellaneous$SVDRP timeout (s)"), &data.SVDRPTimeout));
- Add(new cMenuEditBoolItem(tr("Setup.Miscellaneous$SVDRP peering"), &data.SVDRPPeering));
+ Add(new cMenuEditStraItem(tr("Setup.Miscellaneous$SVDRP peering"), &data.SVDRPPeering, 3, svdrpPeeringModeTexts));
if (data.SVDRPPeering) {
Add(new cMenuEditStrItem( tr("Setup.Miscellaneous$SVDRP host name"), data.SVDRPHostName, sizeof(data.SVDRPHostName)));
if (GetSVDRPServerNames(&svdrpServerNames)) {