diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-01-14 15:29:51 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-01-14 15:29:51 +0100 |
commit | c0fa83065d9f190fa2b9e8e7e4df0b088514cdaf (patch) | |
tree | 86c251636ee4e6d85ed6692e9d2e7d7f22515ecb /config.c | |
parent | 971e3e306d561c2320b5a0cfeac413897628dc6f (diff) | |
download | vdr-c0fa83065d9f190fa2b9e8e7e4df0b088514cdaf.tar.gz vdr-c0fa83065d9f190fa2b9e8e7e4df0b088514cdaf.tar.bz2 |
Saving and restoring the current channel
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: config.c 1.38 2001/01/13 15:36:31 kls Exp $ + * $Id: config.c 1.39 2001/01/14 15:29:15 kls Exp $ */ #include "config.h" @@ -724,6 +724,7 @@ cSetup::cSetup(void) MarginStart = 2; MarginStop = 10; EPGScanTimeout = 5; + CurrentChannel = -1; } bool cSetup::Parse(char *s) @@ -743,6 +744,7 @@ bool cSetup::Parse(char *s) else if (!strcasecmp(Name, "MarginStart")) MarginStart = atoi(Value); else if (!strcasecmp(Name, "MarginStop")) MarginStop = atoi(Value); else if (!strcasecmp(Name, "EPGScanTimeout")) EPGScanTimeout = atoi(Value); + else if (!strcasecmp(Name, "CurrentChannel")) CurrentChannel = atoi(Value); else return false; return true; @@ -795,6 +797,7 @@ bool cSetup::Save(const char *FileName) fprintf(f, "MarginStart = %d\n", MarginStart); fprintf(f, "MarginStop = %d\n", MarginStop); fprintf(f, "EPGScanTimeout = %d\n", EPGScanTimeout); + fprintf(f, "CurrentChannel = %d\n", CurrentChannel); f.Close(); isyslog(LOG_INFO, "saved setup to %s", FileName); return true; |