summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2013-02-03 15:58:46 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2013-02-03 15:58:46 +0100
commitb16437e7848218025986e87eb972b742dd7c958b (patch)
treeaada4c5ff2d00e3e8e1c1b225af23fcbbf1a2d87 /config.c
parent1bad5d1e6f5a9fbbc09081f07f5b4d9d780fe5db (diff)
downloadvdr-b16437e7848218025986e87eb972b742dd7c958b.tar.gz
vdr-b16437e7848218025986e87eb972b742dd7c958b.tar.bz2
New options 'Setup/Miscellaneous/Remote control repeat delay' and 'Setup/Miscellaneous/Remote control repeat delta'
Diffstat (limited to 'config.c')
-rw-r--r--config.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/config.c b/config.c
index 8c7b9d1d..3335dfc2 100644
--- a/config.c
+++ b/config.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: config.c 2.32 2013/01/17 14:50:51 kls Exp $
+ * $Id: config.c 2.33 2013/02/02 13:44:33 kls Exp $
*/
#include "config.h"
@@ -408,6 +408,8 @@ cSetup::cSetup(void)
SVDRPTimeout = 300;
ZapTimeout = 3;
ChannelEntryTimeout = 1000;
+ RcRepeatDelay = 300;
+ RcRepeatDelta = 100;
DefaultPriority = 50;
DefaultLifetime = MAXLIFETIME;
PauseKeyHandling = 2;
@@ -610,6 +612,8 @@ bool cSetup::Parse(const char *Name, const char *Value)
else if (!strcasecmp(Name, "SVDRPTimeout")) SVDRPTimeout = atoi(Value);
else if (!strcasecmp(Name, "ZapTimeout")) ZapTimeout = atoi(Value);
else if (!strcasecmp(Name, "ChannelEntryTimeout")) ChannelEntryTimeout= atoi(Value);
+ else if (!strcasecmp(Name, "RcRepeatDelay")) RcRepeatDelay = atoi(Value);
+ else if (!strcasecmp(Name, "RcRepeatDelta")) RcRepeatDelta = atoi(Value);
else if (!strcasecmp(Name, "DefaultPriority")) DefaultPriority = atoi(Value);
else if (!strcasecmp(Name, "DefaultLifetime")) DefaultLifetime = atoi(Value);
else if (!strcasecmp(Name, "PauseKeyHandling")) PauseKeyHandling = atoi(Value);
@@ -716,6 +720,8 @@ bool cSetup::Save(void)
Store("SVDRPTimeout", SVDRPTimeout);
Store("ZapTimeout", ZapTimeout);
Store("ChannelEntryTimeout",ChannelEntryTimeout);
+ Store("RcRepeatDelay", RcRepeatDelay);
+ Store("RcRepeatDelta", RcRepeatDelta);
Store("DefaultPriority", DefaultPriority);
Store("DefaultLifetime", DefaultLifetime);
Store("PauseKeyHandling", PauseKeyHandling);