summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-09-01 09:04:37 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-09-01 09:04:37 +0200
commita8f8de9dc9fda5fc94e5bc3d98dac5785e72d7da (patch)
tree3afd0bc9751c677efe4dba5849b8e529e146cb7b /config.c
parenta92b585c1ee19c74cfbc23e0096509a8101294fa (diff)
downloadvdr-a8f8de9dc9fda5fc94e5bc3d98dac5785e72d7da.tar.gz
vdr-a8f8de9dc9fda5fc94e5bc3d98dac5785e72d7da.tar.bz2
Implemented automatic shutdown
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 ad4b9dad..788f044e 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 1.59 2001/08/26 14:46:43 kls Exp $
+ * $Id: config.c 1.60 2001/08/31 13:46:26 kls Exp $
*/
#include "config.h"
@@ -820,6 +820,8 @@ cSetup::cSetup(void)
OSDwidth = 52;
OSDheight = 18;
MaxVideoFileSize = MAXVIDEOFILESIZE;
+ MinEventTimeout = 120;
+ MinUserInactivity = 120;
CurrentChannel = -1;
}
@@ -853,6 +855,8 @@ bool cSetup::Parse(char *s)
else if (!strcasecmp(Name, "OSDwidth")) OSDwidth = atoi(Value);
else if (!strcasecmp(Name, "OSDheight")) OSDheight = atoi(Value);
else if (!strcasecmp(Name, "MaxVideoFileSize")) MaxVideoFileSize = atoi(Value);
+ else if (!strcasecmp(Name, "MinEventTimeout")) MinEventTimeout = atoi(Value);
+ else if (!strcasecmp(Name, "MinUserInactivity")) MinUserInactivity = atoi(Value);
else if (!strcasecmp(Name, "CurrentChannel")) CurrentChannel = atoi(Value);
else
return false;
@@ -921,6 +925,8 @@ bool cSetup::Save(const char *FileName)
fprintf(f, "OSDwidth = %d\n", OSDwidth);
fprintf(f, "OSDheight = %d\n", OSDheight);
fprintf(f, "MaxVideoFileSize = %d\n", MaxVideoFileSize);
+ fprintf(f, "MinEventTimeout = %d\n", MinEventTimeout);
+ fprintf(f, "MinUserInactivity = %d\n", MinUserInactivity);
fprintf(f, "CurrentChannel = %d\n", CurrentChannel);
f.Close();
isyslog(LOG_INFO, "saved setup to %s", FileName);