diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2003-04-12 10:06:21 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2003-04-12 10:06:21 +0200 |
commit | 7c84508417b9831b364947b4d7882209db50d4e8 (patch) | |
tree | b17c1b64b941b8164575946292522d8fb7748923 /config.c | |
parent | e58802d2a0a04e860dcd9bb2db8f03b0f9c3402e (diff) | |
download | vdr-7c84508417b9831b364947b4d7882209db50d4e8.tar.gz vdr-7c84508417b9831b364947b4d7882209db50d4e8.tar.bz2 |
Implemented a 'resume ID' which allows several users to each have their own resume.vdr files
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.112 2002/11/02 13:13:49 kls Exp $ + * $Id: config.c 1.113 2003/04/12 09:37:48 kls Exp $ */ #include "config.h" @@ -280,6 +280,7 @@ cSetup::cSetup(void) MinUserInactivity = 120; MultiSpeedMode = 0; ShowReplayMode = 0; + ResumeID = 0; memset(CaCaps, sizeof(CaCaps), 0); CurrentChannel = -1; CurrentVolume = MAXVOLUME; @@ -428,6 +429,7 @@ bool cSetup::Parse(const char *Name, const char *Value) else if (!strcasecmp(Name, "MinUserInactivity")) MinUserInactivity = atoi(Value); else if (!strcasecmp(Name, "MultiSpeedMode")) MultiSpeedMode = atoi(Value); else if (!strcasecmp(Name, "ShowReplayMode")) ShowReplayMode = atoi(Value); + else if (!strcasecmp(Name, "ResumeID")) ResumeID = atoi(Value); else if (!strcasecmp(Name, "CaCaps")) return ParseCaCaps(Value); else if (!strcasecmp(Name, "CurrentChannel")) CurrentChannel = atoi(Value); else if (!strcasecmp(Name, "CurrentVolume")) CurrentVolume = atoi(Value); @@ -474,6 +476,7 @@ bool cSetup::Save(void) Store("MinUserInactivity", MinUserInactivity); Store("MultiSpeedMode", MultiSpeedMode); Store("ShowReplayMode", ShowReplayMode); + Store("ResumeID", ResumeID); StoreCaCaps("CaCaps"); Store("CurrentChannel", CurrentChannel); Store("CurrentVolume", CurrentVolume); |