vdr  2.2.0
config.c
Go to the documentation of this file.
1 /*
2  * config.c: Configuration file handling
3  *
4  * See the main source file 'vdr.c' for copyright information and
5  * how to reach the author.
6  *
7  * $Id: config.c 3.10 2015/02/10 12:24:13 kls Exp $
8  */
9 
10 #include "config.h"
11 #include <ctype.h>
12 #include <stdlib.h>
13 #include "device.h"
14 #include "i18n.h"
15 #include "interface.h"
16 #include "menu.h"
17 #include "plugin.h"
18 #include "recording.h"
19 
20 // IMPORTANT NOTE: in the 'sscanf()' calls there is a blank after the '%d'
21 // format characters in order to allow any number of blanks after a numeric
22 // value!
23 
24 #define ChkDoublePlausibility(Variable, Default) { if (Variable < 0.00001) Variable = Default; }
25 
26 // --- cSVDRPhost ------------------------------------------------------------
27 
29 {
30  addr.s_addr = 0;
31  mask = 0;
32 }
33 
34 bool cSVDRPhost::Parse(const char *s)
35 {
36  mask = 0xFFFFFFFF;
37  const char *p = strchr(s, '/');
38  if (p) {
39  char *error = NULL;
40  int m = strtoul(p + 1, &error, 10);
41  if (error && *error && !isspace(*error) || m > 32)
42  return false;
43  *(char *)p = 0; // yes, we know it's 'const' - will be restored!
44  if (m == 0)
45  mask = 0;
46  else {
47  mask <<= (32 - m);
48  mask = htonl(mask);
49  }
50  }
51  int result = inet_aton(s, &addr);
52  if (p)
53  *(char *)p = '/'; // there it is again
54  return result != 0 && (mask != 0 || addr.s_addr == 0);
55 }
56 
58 {
59  return addr.s_addr == htonl(INADDR_LOOPBACK);
60 }
61 
63 {
64  return (Address & mask) == (addr.s_addr & mask);
65 }
66 
67 // --- cSatCableNumbers ------------------------------------------------------
68 
69 cSatCableNumbers::cSatCableNumbers(int Size, const char *s)
70 {
71  size = Size;
72  array = MALLOC(int, size);
73  FromString(s);
74 }
75 
77 {
78  free(array);
79 }
80 
81 bool cSatCableNumbers::FromString(const char *s)
82 {
83  char *t;
84  int i = 0;
85  const char *p = s;
86  while (p && *p) {
87  int n = strtol(p, &t, 10);
88  if (t != p) {
89  if (i < size)
90  array[i++] = n;
91  else {
92  esyslog("ERROR: too many sat cable numbers in '%s'", s);
93  return false;
94  }
95  }
96  else {
97  esyslog("ERROR: invalid sat cable number in '%s'", s);
98  return false;
99  }
100  p = skipspace(t);
101  }
102  for ( ; i < size; i++)
103  array[i] = 0;
104  return true;
105 }
106 
108 {
109  cString s("");
110  for (int i = 0; i < size; i++) {
111  s = cString::sprintf("%s%d ", *s, array[i]);
112  }
113  return s;
114 }
115 
116 int cSatCableNumbers::FirstDeviceIndex(int DeviceIndex) const
117 {
118  if (0 <= DeviceIndex && DeviceIndex < size) {
119  if (int CableNr = array[DeviceIndex]) {
120  for (int i = 0; i < size; i++) {
121  if (i < DeviceIndex && array[i] == CableNr)
122  return i;
123  }
124  }
125  }
126  return -1;
127 }
128 
129 // --- cNestedItem -----------------------------------------------------------
130 
131 cNestedItem::cNestedItem(const char *Text, bool WithSubItems)
132 {
133  text = strdup(Text ? Text : "");
134  subItems = WithSubItems ? new cList<cNestedItem> : NULL;
135 }
136 
138 {
139  delete subItems;
140  free(text);
141 }
142 
143 int cNestedItem::Compare(const cListObject &ListObject) const
144 {
145  return strcasecmp(text, ((cNestedItem *)&ListObject)->text);
146 }
147 
149 {
150  if (!subItems)
152  if (Item)
153  subItems->Add(Item);
154 }
155 
156 void cNestedItem::SetText(const char *Text)
157 {
158  free(text);
159  text = strdup(Text ? Text : "");
160 }
161 
163 {
164  if (On && !subItems)
166  else if (!On && subItems) {
167  delete subItems;
168  subItems = NULL;
169  }
170 }
171 
172 // --- cNestedItemList -------------------------------------------------------
173 
175 {
176  fileName = NULL;
177 }
178 
180 {
181  free(fileName);
182 }
183 
185 {
186  char *s;
187  cReadLine ReadLine;
188  while ((s = ReadLine.Read(f)) != NULL) {
189  Line++;
190  char *p = strchr(s, '#');
191  if (p)
192  *p = 0;
193  s = skipspace(stripspace(s));
194  if (!isempty(s)) {
195  p = s + strlen(s) - 1;
196  if (*p == '{') {
197  *p = 0;
198  stripspace(s);
199  cNestedItem *Item = new cNestedItem(s, true);
200  List->Add(Item);
201  if (!Parse(f, Item->SubItems(), Line))
202  return false;
203  }
204  else if (*s == '}')
205  break;
206  else
207  List->Add(new cNestedItem(s));
208  }
209  }
210  return true;
211 }
212 
213 bool cNestedItemList::Write(FILE *f, cList<cNestedItem> *List, int Indent)
214 {
215  for (cNestedItem *Item = List->First(); Item; Item = List->Next(Item)) {
216  if (Item->SubItems()) {
217  fprintf(f, "%*s%s {\n", Indent, "", Item->Text());
218  Write(f, Item->SubItems(), Indent + 2);
219  fprintf(f, "%*s}\n", Indent + 2, "");
220  }
221  else
222  fprintf(f, "%*s%s\n", Indent, "", Item->Text());
223  }
224  return true;
225 }
226 
228 {
229  free(fileName);
230  fileName = NULL;
232 }
233 
234 bool cNestedItemList::Load(const char *FileName)
235 {
237  if (FileName) {
238  free(fileName);
239  fileName = strdup(FileName);
240  }
241  bool result = false;
242  if (fileName && access(fileName, F_OK) == 0) {
243  isyslog("loading %s", fileName);
244  FILE *f = fopen(fileName, "r");
245  if (f) {
246  int Line = 0;
247  result = Parse(f, this, Line);
248  fclose(f);
249  }
250  else {
252  result = false;
253  }
254  }
255  return result;
256 }
257 
259 {
260  bool result = true;
261  cSafeFile f(fileName);
262  if (f.Open()) {
263  result = Write(f, this);
264  if (!f.Close())
265  result = false;
266  }
267  else
268  result = false;
269  return result;
270 }
271 
272 // --- Folders and Commands --------------------------------------------------
273 
278 
279 // --- cSVDRPhosts -----------------------------------------------------------
280 
282 
284 {
285  cSVDRPhost *h = First();
286  while (h) {
287  if (!h->IsLocalhost())
288  return false;
289  h = (cSVDRPhost *)h->Next();
290  }
291  return true;
292 }
293 
295 {
296  cSVDRPhost *h = First();
297  while (h) {
298  if (h->Accepts(Address))
299  return true;
300  h = (cSVDRPhost *)h->Next();
301  }
302  return false;
303 }
304 
305 // --- cSetupLine ------------------------------------------------------------
306 
308 {
309  plugin = name = value = NULL;
310 }
311 
312 cSetupLine::cSetupLine(const char *Name, const char *Value, const char *Plugin)
313 {
314  name = strreplace(strdup(Name), '\n', 0);
315  value = strreplace(strdup(Value), '\n', 0);
316  plugin = Plugin ? strreplace(strdup(Plugin), '\n', 0) : NULL;
317 }
318 
320 {
321  free(plugin);
322  free(name);
323  free(value);
324 }
325 
326 int cSetupLine::Compare(const cListObject &ListObject) const
327 {
328  const cSetupLine *sl = (cSetupLine *)&ListObject;
329  if (!plugin && !sl->plugin)
330  return strcasecmp(name, sl->name);
331  if (!plugin)
332  return -1;
333  if (!sl->plugin)
334  return 1;
335  int result = strcasecmp(plugin, sl->plugin);
336  if (result == 0)
337  result = strcasecmp(name, sl->name);
338  return result;
339 }
340 
341 bool cSetupLine::Parse(char *s)
342 {
343  char *p = strchr(s, '=');
344  if (p) {
345  *p = 0;
346  char *Name = compactspace(s);
347  char *Value = compactspace(p + 1);
348  if (*Name) { // value may be an empty string
349  p = strchr(Name, '.');
350  if (p) {
351  *p = 0;
352  char *Plugin = compactspace(Name);
353  Name = compactspace(p + 1);
354  if (!(*Plugin && *Name))
355  return false;
356  plugin = strdup(Plugin);
357  }
358  name = strdup(Name);
359  value = strdup(Value);
360  return true;
361  }
362  }
363  return false;
364 }
365 
366 bool cSetupLine::Save(FILE *f)
367 {
368  return fprintf(f, "%s%s%s = %s\n", plugin ? plugin : "", plugin ? "." : "", name, value) > 0;
369 }
370 
371 // --- cSetup ----------------------------------------------------------------
372 
374 
376 {
377  strcpy(OSDLanguage, ""); // default is taken from environment
378  strcpy(OSDSkin, "lcars");
379  strcpy(OSDTheme, "default");
380  PrimaryDVB = 1;
381  ShowInfoOnChSwitch = 1;
382  TimeoutRequChInfo = 1;
383  MenuScrollPage = 1;
384  MenuScrollWrap = 0;
385  MenuKeyCloses = 0;
386  MarkInstantRecord = 1;
389  LnbSLOF = 11700;
390  LnbFrequLo = 9750;
391  LnbFrequHi = 10600;
392  DiSEqC = 0;
393  UsePositioner = 0;
394  SiteLat = 0;
395  SiteLon = 0;
396  PositionerSpeed = 15;
397  PositionerSwing = 650;
398  PositionerLastLon = 0;
399  SetSystemTime = 0;
400  TimeSource = 0;
401  TimeTransponder = 0;
403  MarginStart = 2;
404  MarginStop = 10;
405  AudioLanguages[0] = -1;
406  DisplaySubtitles = 0;
407  SupportTeletext = 1;
408  SubtitleLanguages[0] = -1;
409  SubtitleOffset = 0;
412  EPGLanguages[0] = -1;
413  EPGScanTimeout = 5;
414  EPGBugfixLevel = 3;
415  EPGLinger = 0;
416  SVDRPTimeout = 300;
417  ZapTimeout = 3;
418  ChannelEntryTimeout = 1000;
419  RcRepeatDelay = 300;
420  RcRepeatDelta = 100;
421  DefaultPriority = 50;
423  PauseKeyHandling = 2;
424  PausePriority = 10;
425  PauseLifetime = 1;
426  UseSubtitle = 1;
427  UseVps = 0;
428  VpsMargin = 120;
429  RecordingDirs = 1;
430  FoldersInTimerMenu = 1;
432  NumberKeysForChars = 1;
433  ColorKey0 = 0;
434  ColorKey1 = 1;
435  ColorKey2 = 2;
436  ColorKey3 = 3;
437  VideoDisplayFormat = 1;
438  VideoFormat = 0;
439  UpdateChannels = 5;
440  UseDolbyDigital = 1;
441  ChannelInfoPos = 0;
442  ChannelInfoTime = 5;
443  OSDLeftP = 0.08;
444  OSDTopP = 0.08;
445  OSDWidthP = 0.87;
446  OSDHeightP = 0.84;
447  OSDLeft = 54;
448  OSDTop = 45;
449  OSDWidth = 624;
450  OSDHeight = 486;
451  OSDAspect = 1.0;
452  OSDMessageTime = 1;
453  UseSmallFont = 1;
454  AntiAlias = 1;
455  strcpy(FontOsd, DefaultFontOsd);
456  strcpy(FontSml, DefaultFontSml);
457  strcpy(FontFix, DefaultFontFix);
458  FontOsdSizeP = 0.031;
459  FontSmlSizeP = 0.028;
460  FontFixSizeP = 0.030;
461  FontOsdSize = 22;
462  FontSmlSize = 18;
463  FontFixSize = 20;
465  SplitEditedFiles = 0;
466  DelTimeshiftRec = 0;
467  DumpNaluFill = 0;
468  MinEventTimeout = 30;
469  MinUserInactivity = 300;
470  NextWakeupTime = 0;
471  MultiSpeedMode = 0;
472  ShowReplayMode = 0;
473  ShowRemainingTime = 0;
475  PauseOnMarkSet = 0;
476  PauseOnMarkJump = 1;
477  SkipEdited = 0;
478  PauseAtLastMark = 0;
479  AdaptiveSkipInitial = 120;
483  SkipSeconds = 60;
484  SkipSecondsRepeat = 60;
485  ResumeID = 0;
486  CurrentChannel = -1;
488  VolumeSteps = 51;
489  VolumeLinearize = 0;
490  CurrentDolby = 0;
491  InitialChannel = "";
492  DeviceBondings = "";
493  InitialVolume = -1;
494  ChannelsWrap = 0;
497  EmergencyExit = 1;
498 }
499 
501 {
502  memcpy(&__BeginData__, &s.__BeginData__, (char *)&s.__EndData__ - (char *)&s.__BeginData__);
505  return *this;
506 }
507 
508 cSetupLine *cSetup::Get(const char *Name, const char *Plugin)
509 {
510  for (cSetupLine *l = First(); l; l = Next(l)) {
511  if ((l->Plugin() == NULL) == (Plugin == NULL)) {
512  if ((!Plugin || strcasecmp(l->Plugin(), Plugin) == 0) && strcasecmp(l->Name(), Name) == 0)
513  return l;
514  }
515  }
516  return NULL;
517 }
518 
519 void cSetup::Store(const char *Name, const char *Value, const char *Plugin, bool AllowMultiple)
520 {
521  if (Name && *Name) {
522  cSetupLine *l = Get(Name, Plugin);
523  if (l && !AllowMultiple)
524  Del(l);
525  if (Value)
526  Add(new cSetupLine(Name, Value, Plugin));
527  }
528 }
529 
530 void cSetup::Store(const char *Name, int Value, const char *Plugin)
531 {
532  Store(Name, cString::sprintf("%d", Value), Plugin);
533 }
534 
535 void cSetup::Store(const char *Name, double &Value, const char *Plugin)
536 {
537  Store(Name, dtoa(Value), Plugin);
538 }
539 
540 bool cSetup::Load(const char *FileName)
541 {
542  if (cConfig<cSetupLine>::Load(FileName)) {
543  bool result = true;
544  for (cSetupLine *l = First(); l; l = Next(l)) {
545  bool error = false;
546  if (l->Plugin()) {
547  cPlugin *p = cPluginManager::GetPlugin(l->Plugin());
548  if (p && !p->SetupParse(l->Name(), l->Value()))
549  error = true;
550  }
551  else {
552  if (!Parse(l->Name(), l->Value()))
553  error = true;
554  }
555  if (error) {
556  esyslog("ERROR: unknown config parameter: %s%s%s = %s", l->Plugin() ? l->Plugin() : "", l->Plugin() ? "." : "", l->Name(), l->Value());
557  result = false;
558  }
559  }
560  return result;
561  }
562  return false;
563 }
564 
565 void cSetup::StoreLanguages(const char *Name, int *Values)
566 {
567  char buffer[I18nLanguages()->Size() * 4];
568  char *q = buffer;
569  for (int i = 0; i < I18nLanguages()->Size(); i++) {
570  if (Values[i] < 0)
571  break;
572  const char *s = I18nLanguageCode(Values[i]);
573  if (s) {
574  if (q > buffer)
575  *q++ = ' ';
576  strncpy(q, s, 3);
577  q += 3;
578  }
579  }
580  *q = 0;
581  Store(Name, buffer);
582 }
583 
584 bool cSetup::ParseLanguages(const char *Value, int *Values)
585 {
586  int n = 0;
587  while (Value && *Value && n < I18nLanguages()->Size()) {
588  char buffer[4];
589  strn0cpy(buffer, Value, sizeof(buffer));
590  int i = I18nLanguageIndex(buffer);
591  if (i >= 0)
592  Values[n++] = i;
593  if ((Value = strchr(Value, ' ')) != NULL)
594  Value++;
595  }
596  Values[n] = -1;
597  return true;
598 }
599 
600 bool cSetup::Parse(const char *Name, const char *Value)
601 {
602  if (!strcasecmp(Name, "OSDLanguage")) { strn0cpy(OSDLanguage, Value, sizeof(OSDLanguage)); I18nSetLocale(OSDLanguage); }
603  else if (!strcasecmp(Name, "OSDSkin")) Utf8Strn0Cpy(OSDSkin, Value, MaxSkinName);
604  else if (!strcasecmp(Name, "OSDTheme")) Utf8Strn0Cpy(OSDTheme, Value, MaxThemeName);
605  else if (!strcasecmp(Name, "PrimaryDVB")) PrimaryDVB = atoi(Value);
606  else if (!strcasecmp(Name, "ShowInfoOnChSwitch")) ShowInfoOnChSwitch = atoi(Value);
607  else if (!strcasecmp(Name, "TimeoutRequChInfo")) TimeoutRequChInfo = atoi(Value);
608  else if (!strcasecmp(Name, "MenuScrollPage")) MenuScrollPage = atoi(Value);
609  else if (!strcasecmp(Name, "MenuScrollWrap")) MenuScrollWrap = atoi(Value);
610  else if (!strcasecmp(Name, "MenuKeyCloses")) MenuKeyCloses = atoi(Value);
611  else if (!strcasecmp(Name, "MarkInstantRecord")) MarkInstantRecord = atoi(Value);
612  else if (!strcasecmp(Name, "NameInstantRecord")) Utf8Strn0Cpy(NameInstantRecord, Value, sizeof(NameInstantRecord));
613  else if (!strcasecmp(Name, "InstantRecordTime")) InstantRecordTime = atoi(Value);
614  else if (!strcasecmp(Name, "LnbSLOF")) LnbSLOF = atoi(Value);
615  else if (!strcasecmp(Name, "LnbFrequLo")) LnbFrequLo = atoi(Value);
616  else if (!strcasecmp(Name, "LnbFrequHi")) LnbFrequHi = atoi(Value);
617  else if (!strcasecmp(Name, "DiSEqC")) DiSEqC = atoi(Value);
618  else if (!strcasecmp(Name, "UsePositioner")) UsePositioner = atoi(Value);
619  else if (!strcasecmp(Name, "SiteLat")) SiteLat = atoi(Value);
620  else if (!strcasecmp(Name, "SiteLon")) SiteLon = atoi(Value);
621  else if (!strcasecmp(Name, "PositionerSpeed")) PositionerSpeed = atoi(Value);
622  else if (!strcasecmp(Name, "PositionerSwing")) PositionerSwing = atoi(Value);
623  else if (!strcasecmp(Name, "PositionerLastLon")) PositionerLastLon = atoi(Value);
624  else if (!strcasecmp(Name, "SetSystemTime")) SetSystemTime = atoi(Value);
625  else if (!strcasecmp(Name, "TimeSource")) TimeSource = cSource::FromString(Value);
626  else if (!strcasecmp(Name, "TimeTransponder")) TimeTransponder = atoi(Value);
627  else if (!strcasecmp(Name, "StandardCompliance")) StandardCompliance = atoi(Value);
628  else if (!strcasecmp(Name, "MarginStart")) MarginStart = atoi(Value);
629  else if (!strcasecmp(Name, "MarginStop")) MarginStop = atoi(Value);
630  else if (!strcasecmp(Name, "AudioLanguages")) return ParseLanguages(Value, AudioLanguages);
631  else if (!strcasecmp(Name, "DisplaySubtitles")) DisplaySubtitles = atoi(Value);
632  else if (!strcasecmp(Name, "SupportTeletext")) SupportTeletext = atoi(Value);
633  else if (!strcasecmp(Name, "SubtitleLanguages")) return ParseLanguages(Value, SubtitleLanguages);
634  else if (!strcasecmp(Name, "SubtitleOffset")) SubtitleOffset = atoi(Value);
635  else if (!strcasecmp(Name, "SubtitleFgTransparency")) SubtitleFgTransparency = atoi(Value);
636  else if (!strcasecmp(Name, "SubtitleBgTransparency")) SubtitleBgTransparency = atoi(Value);
637  else if (!strcasecmp(Name, "EPGLanguages")) return ParseLanguages(Value, EPGLanguages);
638  else if (!strcasecmp(Name, "EPGScanTimeout")) EPGScanTimeout = atoi(Value);
639  else if (!strcasecmp(Name, "EPGBugfixLevel")) EPGBugfixLevel = atoi(Value);
640  else if (!strcasecmp(Name, "EPGLinger")) EPGLinger = atoi(Value);
641  else if (!strcasecmp(Name, "SVDRPTimeout")) SVDRPTimeout = atoi(Value);
642  else if (!strcasecmp(Name, "ZapTimeout")) ZapTimeout = atoi(Value);
643  else if (!strcasecmp(Name, "ChannelEntryTimeout")) ChannelEntryTimeout= atoi(Value);
644  else if (!strcasecmp(Name, "RcRepeatDelay")) RcRepeatDelay = atoi(Value);
645  else if (!strcasecmp(Name, "RcRepeatDelta")) RcRepeatDelta = atoi(Value);
646  else if (!strcasecmp(Name, "DefaultPriority")) DefaultPriority = atoi(Value);
647  else if (!strcasecmp(Name, "DefaultLifetime")) DefaultLifetime = atoi(Value);
648  else if (!strcasecmp(Name, "PauseKeyHandling")) PauseKeyHandling = atoi(Value);
649  else if (!strcasecmp(Name, "PausePriority")) PausePriority = atoi(Value);
650  else if (!strcasecmp(Name, "PauseLifetime")) PauseLifetime = atoi(Value);
651  else if (!strcasecmp(Name, "UseSubtitle")) UseSubtitle = atoi(Value);
652  else if (!strcasecmp(Name, "UseVps")) UseVps = atoi(Value);
653  else if (!strcasecmp(Name, "VpsMargin")) VpsMargin = atoi(Value);
654  else if (!strcasecmp(Name, "RecordingDirs")) RecordingDirs = atoi(Value);
655  else if (!strcasecmp(Name, "FoldersInTimerMenu")) FoldersInTimerMenu = atoi(Value);
656  else if (!strcasecmp(Name, "AlwaysSortFoldersFirst")) AlwaysSortFoldersFirst = atoi(Value);
657  else if (!strcasecmp(Name, "NumberKeysForChars")) NumberKeysForChars = atoi(Value);
658  else if (!strcasecmp(Name, "ColorKey0")) ColorKey0 = atoi(Value);
659  else if (!strcasecmp(Name, "ColorKey1")) ColorKey1 = atoi(Value);
660  else if (!strcasecmp(Name, "ColorKey2")) ColorKey2 = atoi(Value);
661  else if (!strcasecmp(Name, "ColorKey3")) ColorKey3 = atoi(Value);
662  else if (!strcasecmp(Name, "VideoDisplayFormat")) VideoDisplayFormat = atoi(Value);
663  else if (!strcasecmp(Name, "VideoFormat")) VideoFormat = atoi(Value);
664  else if (!strcasecmp(Name, "UpdateChannels")) UpdateChannels = atoi(Value);
665  else if (!strcasecmp(Name, "UseDolbyDigital")) UseDolbyDigital = atoi(Value);
666  else if (!strcasecmp(Name, "ChannelInfoPos")) ChannelInfoPos = atoi(Value);
667  else if (!strcasecmp(Name, "ChannelInfoTime")) ChannelInfoTime = atoi(Value);
668  else if (!strcasecmp(Name, "OSDLeftP")) OSDLeftP = atod(Value);
669  else if (!strcasecmp(Name, "OSDTopP")) OSDTopP = atod(Value);
670  else if (!strcasecmp(Name, "OSDWidthP")) { OSDWidthP = atod(Value); ChkDoublePlausibility(OSDWidthP, 0.87); }
671  else if (!strcasecmp(Name, "OSDHeightP")) { OSDHeightP = atod(Value); ChkDoublePlausibility(OSDHeightP, 0.84); }
672  else if (!strcasecmp(Name, "OSDLeft")) OSDLeft = atoi(Value);
673  else if (!strcasecmp(Name, "OSDTop")) OSDTop = atoi(Value);
674  else if (!strcasecmp(Name, "OSDWidth")) { OSDWidth = atoi(Value); OSDWidth &= ~0x07; } // OSD width must be a multiple of 8
675  else if (!strcasecmp(Name, "OSDHeight")) OSDHeight = atoi(Value);
676  else if (!strcasecmp(Name, "OSDAspect")) OSDAspect = atod(Value);
677  else if (!strcasecmp(Name, "OSDMessageTime")) OSDMessageTime = atoi(Value);
678  else if (!strcasecmp(Name, "UseSmallFont")) UseSmallFont = atoi(Value);
679  else if (!strcasecmp(Name, "AntiAlias")) AntiAlias = atoi(Value);
680  else if (!strcasecmp(Name, "FontOsd")) Utf8Strn0Cpy(FontOsd, Value, MAXFONTNAME);
681  else if (!strcasecmp(Name, "FontSml")) Utf8Strn0Cpy(FontSml, Value, MAXFONTNAME);
682  else if (!strcasecmp(Name, "FontFix")) Utf8Strn0Cpy(FontFix, Value, MAXFONTNAME);
683  else if (!strcasecmp(Name, "FontOsdSizeP")) { FontOsdSizeP = atod(Value); ChkDoublePlausibility(FontOsdSizeP, 0.038); }
684  else if (!strcasecmp(Name, "FontSmlSizeP")) { FontSmlSizeP = atod(Value); ChkDoublePlausibility(FontSmlSizeP, 0.035); }
685  else if (!strcasecmp(Name, "FontFixSizeP")) { FontFixSizeP = atod(Value); ChkDoublePlausibility(FontFixSizeP, 0.031); }
686  else if (!strcasecmp(Name, "FontOsdSize")) FontOsdSize = atoi(Value);
687  else if (!strcasecmp(Name, "FontSmlSize")) FontSmlSize = atoi(Value);
688  else if (!strcasecmp(Name, "FontFixSize")) FontFixSize = atoi(Value);
689  else if (!strcasecmp(Name, "MaxVideoFileSize")) MaxVideoFileSize = atoi(Value);
690  else if (!strcasecmp(Name, "SplitEditedFiles")) SplitEditedFiles = atoi(Value);
691  else if (!strcasecmp(Name, "DelTimeshiftRec")) DelTimeshiftRec = atoi(Value);
692  else if (!strcasecmp(Name, "DumpNaluFill")) DumpNaluFill = atoi(Value);
693  else if (!strcasecmp(Name, "MinEventTimeout")) MinEventTimeout = atoi(Value);
694  else if (!strcasecmp(Name, "MinUserInactivity")) MinUserInactivity = atoi(Value);
695  else if (!strcasecmp(Name, "NextWakeupTime")) NextWakeupTime = atoi(Value);
696  else if (!strcasecmp(Name, "MultiSpeedMode")) MultiSpeedMode = atoi(Value);
697  else if (!strcasecmp(Name, "ShowReplayMode")) ShowReplayMode = atoi(Value);
698  else if (!strcasecmp(Name, "ShowRemainingTime")) ShowRemainingTime = atoi(Value);
699  else if (!strcasecmp(Name, "ProgressDisplayTime")) ProgressDisplayTime= atoi(Value);
700  else if (!strcasecmp(Name, "PauseOnMarkSet")) PauseOnMarkSet = atoi(Value);
701  else if (!strcasecmp(Name, "PauseOnMarkJump")) PauseOnMarkJump = atoi(Value);
702  else if (!strcasecmp(Name, "SkipEdited")) SkipEdited = atoi(Value);
703  else if (!strcasecmp(Name, "PauseAtLastMark")) PauseAtLastMark = atoi(Value);
704  else if (!strcasecmp(Name, "AdaptiveSkipInitial")) AdaptiveSkipInitial= atoi(Value);
705  else if (!strcasecmp(Name, "AdaptiveSkipTimeout")) AdaptiveSkipTimeout= atoi(Value);
706  else if (!strcasecmp(Name, "AdaptiveSkipAlternate")) AdaptiveSkipAlternate = atoi(Value);
707  else if (!strcasecmp(Name, "AdaptiveSkipPrevNext")) AdaptiveSkipPrevNext = atoi(Value);
708  else if (!strcasecmp(Name, "SkipSeconds")) SkipSeconds = atoi(Value);
709  else if (!strcasecmp(Name, "SkipSecondsRepeat")) SkipSecondsRepeat = atoi(Value);
710  else if (!strcasecmp(Name, "ResumeID")) ResumeID = atoi(Value);
711  else if (!strcasecmp(Name, "CurrentChannel")) CurrentChannel = atoi(Value);
712  else if (!strcasecmp(Name, "CurrentVolume")) CurrentVolume = atoi(Value);
713  else if (!strcasecmp(Name, "CurrentDolby")) CurrentDolby = atoi(Value);
714  else if (!strcasecmp(Name, "InitialChannel")) InitialChannel = Value;
715  else if (!strcasecmp(Name, "VolumeSteps")) VolumeSteps = atoi(Value);
716  else if (!strcasecmp(Name, "VolumeLinearize")) VolumeLinearize = atoi(Value);
717  else if (!strcasecmp(Name, "InitialVolume")) InitialVolume = atoi(Value);
718  else if (!strcasecmp(Name, "DeviceBondings")) DeviceBondings = Value;
719  else if (!strcasecmp(Name, "ChannelsWrap")) ChannelsWrap = atoi(Value);
720  else if (!strcasecmp(Name, "ShowChannelNamesWithSource")) ShowChannelNamesWithSource = atoi(Value);
721  else if (!strcasecmp(Name, "UseAutoChannelNumbering")) UseAutoChannelNumbering = atoi(Value);
722  else if (!strcasecmp(Name, "EmergencyExit")) EmergencyExit = atoi(Value);
723  else if (!strcasecmp(Name, "LastReplayed")) cReplayControl::SetRecording(Value);
724  else
725  return false;
726  return true;
727 }
728 
729 bool cSetup::Save(void)
730 {
731  Store("OSDLanguage", OSDLanguage);
732  Store("OSDSkin", OSDSkin);
733  Store("OSDTheme", OSDTheme);
734  Store("PrimaryDVB", PrimaryDVB);
735  Store("ShowInfoOnChSwitch", ShowInfoOnChSwitch);
736  Store("TimeoutRequChInfo", TimeoutRequChInfo);
737  Store("MenuScrollPage", MenuScrollPage);
738  Store("MenuScrollWrap", MenuScrollWrap);
739  Store("MenuKeyCloses", MenuKeyCloses);
740  Store("MarkInstantRecord", MarkInstantRecord);
741  Store("NameInstantRecord", NameInstantRecord);
742  Store("InstantRecordTime", InstantRecordTime);
743  Store("LnbSLOF", LnbSLOF);
744  Store("LnbFrequLo", LnbFrequLo);
745  Store("LnbFrequHi", LnbFrequHi);
746  Store("DiSEqC", DiSEqC);
747  Store("UsePositioner", UsePositioner);
748  Store("SiteLat", SiteLat);
749  Store("SiteLon", SiteLon);
750  Store("PositionerSpeed", PositionerSpeed);
751  Store("PositionerSwing", PositionerSwing);
752  Store("PositionerLastLon", PositionerLastLon);
753  Store("SetSystemTime", SetSystemTime);
754  Store("TimeSource", cSource::ToString(TimeSource));
755  Store("TimeTransponder", TimeTransponder);
756  Store("StandardCompliance", StandardCompliance);
757  Store("MarginStart", MarginStart);
758  Store("MarginStop", MarginStop);
759  StoreLanguages("AudioLanguages", AudioLanguages);
760  Store("DisplaySubtitles", DisplaySubtitles);
761  Store("SupportTeletext", SupportTeletext);
762  StoreLanguages("SubtitleLanguages", SubtitleLanguages);
763  Store("SubtitleOffset", SubtitleOffset);
764  Store("SubtitleFgTransparency", SubtitleFgTransparency);
765  Store("SubtitleBgTransparency", SubtitleBgTransparency);
766  StoreLanguages("EPGLanguages", EPGLanguages);
767  Store("EPGScanTimeout", EPGScanTimeout);
768  Store("EPGBugfixLevel", EPGBugfixLevel);
769  Store("EPGLinger", EPGLinger);
770  Store("SVDRPTimeout", SVDRPTimeout);
771  Store("ZapTimeout", ZapTimeout);
772  Store("ChannelEntryTimeout",ChannelEntryTimeout);
773  Store("RcRepeatDelay", RcRepeatDelay);
774  Store("RcRepeatDelta", RcRepeatDelta);
775  Store("DefaultPriority", DefaultPriority);
776  Store("DefaultLifetime", DefaultLifetime);
777  Store("PauseKeyHandling", PauseKeyHandling);
778  Store("PausePriority", PausePriority);
779  Store("PauseLifetime", PauseLifetime);
780  Store("UseSubtitle", UseSubtitle);
781  Store("UseVps", UseVps);
782  Store("VpsMargin", VpsMargin);
783  Store("RecordingDirs", RecordingDirs);
784  Store("FoldersInTimerMenu", FoldersInTimerMenu);
785  Store("AlwaysSortFoldersFirst", AlwaysSortFoldersFirst);
786  Store("NumberKeysForChars", NumberKeysForChars);
787  Store("ColorKey0", ColorKey0);
788  Store("ColorKey1", ColorKey1);
789  Store("ColorKey2", ColorKey2);
790  Store("ColorKey3", ColorKey3);
791  Store("VideoDisplayFormat", VideoDisplayFormat);
792  Store("VideoFormat", VideoFormat);
793  Store("UpdateChannels", UpdateChannels);
794  Store("UseDolbyDigital", UseDolbyDigital);
795  Store("ChannelInfoPos", ChannelInfoPos);
796  Store("ChannelInfoTime", ChannelInfoTime);
797  Store("OSDLeftP", OSDLeftP);
798  Store("OSDTopP", OSDTopP);
799  Store("OSDWidthP", OSDWidthP);
800  Store("OSDHeightP", OSDHeightP);
801  Store("OSDLeft", OSDLeft);
802  Store("OSDTop", OSDTop);
803  Store("OSDWidth", OSDWidth);
804  Store("OSDHeight", OSDHeight);
805  Store("OSDAspect", OSDAspect);
806  Store("OSDMessageTime", OSDMessageTime);
807  Store("UseSmallFont", UseSmallFont);
808  Store("AntiAlias", AntiAlias);
809  Store("FontOsd", FontOsd);
810  Store("FontSml", FontSml);
811  Store("FontFix", FontFix);
812  Store("FontOsdSizeP", FontOsdSizeP);
813  Store("FontSmlSizeP", FontSmlSizeP);
814  Store("FontFixSizeP", FontFixSizeP);
815  Store("FontOsdSize", FontOsdSize);
816  Store("FontSmlSize", FontSmlSize);
817  Store("FontFixSize", FontFixSize);
818  Store("MaxVideoFileSize", MaxVideoFileSize);
819  Store("SplitEditedFiles", SplitEditedFiles);
820  Store("DelTimeshiftRec", DelTimeshiftRec);
821  Store("DumpNaluFill", DumpNaluFill);
822  Store("MinEventTimeout", MinEventTimeout);
823  Store("MinUserInactivity", MinUserInactivity);
824  Store("NextWakeupTime", NextWakeupTime);
825  Store("MultiSpeedMode", MultiSpeedMode);
826  Store("ShowReplayMode", ShowReplayMode);
827  Store("ShowRemainingTime", ShowRemainingTime);
828  Store("ProgressDisplayTime",ProgressDisplayTime);
829  Store("PauseOnMarkSet", PauseOnMarkSet);
830  Store("PauseOnMarkJump", PauseOnMarkJump);
831  Store("SkipEdited", SkipEdited);
832  Store("PauseAtLastMark", PauseAtLastMark);
833  Store("AdaptiveSkipInitial",AdaptiveSkipInitial);
834  Store("AdaptiveSkipTimeout",AdaptiveSkipTimeout);
835  Store("AdaptiveSkipAlternate", AdaptiveSkipAlternate);
836  Store("AdaptiveSkipPrevNext", AdaptiveSkipPrevNext);
837  Store("SkipSeconds", SkipSeconds);
838  Store("SkipSecondsRepeat", SkipSecondsRepeat);
839  Store("ResumeID", ResumeID);
840  Store("CurrentChannel", CurrentChannel);
841  Store("CurrentVolume", CurrentVolume);
842  Store("CurrentDolby", CurrentDolby);
843  Store("InitialChannel", InitialChannel);
844  Store("VolumeSteps", VolumeSteps);
845  Store("VolumeLinearize", VolumeLinearize);
846  Store("InitialVolume", InitialVolume);
847  Store("DeviceBondings", DeviceBondings);
848  Store("ChannelsWrap", ChannelsWrap);
849  Store("ShowChannelNamesWithSource", ShowChannelNamesWithSource);
850  Store("UseAutoChannelNumbering", UseAutoChannelNumbering);
851  Store("EmergencyExit", EmergencyExit);
852  Store("LastReplayed", cReplayControl::LastReplayed());
853 
854  Sort();
855 
857  isyslog("saved setup to %s", FileName());
858  return true;
859  }
860  return false;
861 }
cString dtoa(double d, const char *Format)
Converts the given double value to a string, making sure it uses a '.
Definition: tools.c:378
static cString ToString(int Code)
Definition: sources.c:55
int AntiAlias
Definition: config.h:323
cSetupLine * Get(const char *Name, const char *Plugin=NULL)
Definition: config.c:508
double OSDHeightP
Definition: config.h:318
bool Parse(FILE *f, cList< cNestedItem > *List, int &Line)
Definition: config.c:184
cString DeviceBondings
Definition: config.h:366
int DumpNaluFill
Definition: config.h:336
int CurrentChannel
Definition: config.h:354
bool isempty(const char *s)
Definition: tools.c:297
int StandardCompliance
Definition: config.h:284
int MultiSpeedMode
Definition: config.h:339
cSetupLine(void)
Definition: config.c:307
double OSDWidthP
Definition: config.h:318
bool Close(void)
Definition: tools.c:1672
char * plugin
Definition: config.h:231
int UseAutoChannelNumbering
Definition: config.h:362
char * name
Definition: config.h:232
double FontFixSizeP
Definition: config.h:329
void Add(cListObject *Object, cListObject *After=NULL)
Definition: tools.c:2014
bool Parse(const char *s)
Definition: config.c:34
int UseVps
Definition: config.h:305
char * stripspace(char *s)
Definition: tools.c:201
bool Write(FILE *f, cList< cNestedItem > *List, int Indent=0)
Definition: config.c:213
double FontOsdSizeP
Definition: config.h:327
bool Open(void)
Definition: tools.c:1662
void Store(const char *Name, const char *Value, const char *Plugin=NULL, bool AllowMultiple=false)
Definition: config.c:519
char * text
Definition: config.h:191
cNestedItemList TimerCommands
Definition: config.c:277
int DefaultPriority
Definition: config.h:301
const char * Name(void)
Definition: config.h:240
#define TIMERMACRO_EPISODE
Definition: config.h:48
int ZapTimeout
Definition: config.h:297
static cString sprintf(const char *fmt,...) __attribute__((format(printf
Definition: tools.c:1080
int PausePriority
Definition: config.h:302
int AdaptiveSkipPrevNext
Definition: config.h:350
const char * DefaultFontSml
Definition: font.c:25
Definition: plugin.h:20
#define esyslog(a...)
Definition: tools.h:34
int MinUserInactivity
Definition: config.h:337
int FontFixSize
Definition: config.h:332
cNestedItemList Commands
Definition: config.c:275
char * strn0cpy(char *dest, const char *src, size_t n)
Definition: tools.c:131
char FontSml[MAXFONTNAME]
Definition: config.h:325
int AlwaysSortFoldersFirst
Definition: config.h:309
int SkipEdited
Definition: config.h:345
#define LOG_ERROR_STR(s)
Definition: tools.h:39
bool Save(void)
Definition: config.c:729
int EPGLanguages[I18N_MAX_LANGUAGES+1]
Definition: config.h:292
int PauseLifetime
Definition: config.h:302
int MarkInstantRecord
Definition: config.h:268
#define MAXVOLUME
Definition: device.h:32
void SetSubItems(bool On)
Definition: config.c:162
int RecordingDirs
Definition: config.h:307
int UseSubtitle
Definition: config.h:304
#define MAXFONTNAME
Definition: font.h:17
const char * Plugin(void)
Definition: config.h:239
int OSDTop
Definition: config.h:319
int EPGLinger
Definition: config.h:295
int ShowReplayMode
Definition: config.h:340
double atod(const char *s)
Converts the given string, which is a floating point number using a '.
Definition: tools.c:357
int MenuKeyCloses
Definition: config.h:267
void SetText(const char *Text)
Definition: config.c:156
virtual ~cSetupLine()
Definition: config.c:319
int ColorKey2
Definition: config.h:311
cString ToString(void)
Definition: config.c:107
int ShowInfoOnChSwitch
Definition: config.h:263
int CurrentDolby
Definition: config.h:358
const char * FileName(void)
Definition: config.h:119
void I18nSetLocale(const char *Locale)
Sets the current locale to Locale.
Definition: i18n.c:170
bool LocalhostOnly(void)
Definition: config.c:283
int ChannelsWrap
Definition: config.h:360
char * Read(FILE *f)
Definition: tools.c:1398
cNestedItemList RecordingCommands
Definition: config.c:276
#define MAXVIDEOFILESIZEDEFAULT
Definition: recording.h:420
#define ChkDoublePlausibility(Variable, Default)
Definition: config.c:24
#define MALLOC(type, size)
Definition: tools.h:46
int ChannelEntryTimeout
Definition: config.h:298
virtual void Clear(void)
Definition: tools.c:2087
cSatCableNumbers(int Size, const char *s=NULL)
Definition: config.c:69
static void SetRecording(const char *FileName)
Definition: menu.c:5453
#define MaxSkinName
Definition: config.h:60
char * fileName
Definition: config.h:206
#define TIMERMACRO_TITLE
Definition: config.h:47
int LnbFrequLo
Definition: config.h:272
int SkipSecondsRepeat
Definition: config.h:352
int SkipSeconds
Definition: config.h:351
int EmergencyExit
Definition: config.h:363
int TimeTransponder
Definition: config.h:283
bool Parse(char *s)
Definition: config.c:341
void AddSubItem(cNestedItem *Item)
Definition: config.c:148
virtual ~cNestedItem()
Definition: config.c:137
cSVDRPhosts SVDRPhosts
Definition: config.c:281
int NumberKeysForChars
Definition: config.h:310
virtual int Compare(const cListObject &ListObject) const
Must return 0 if this object is equal to ListObject, a positive value if it is "greater", and a negative value if it is "smaller".
Definition: config.c:326
T * Next(const T *object) const
Definition: tools.h:495
int InitialVolume
Definition: config.h:359
int UsePositioner
Definition: config.h:275
char * value
Definition: config.h:233
uint32_t in_addr_t
Definition: config.h:74
int AdaptiveSkipAlternate
Definition: config.h:349
void Clear(void)
Definition: config.c:227
int SubtitleFgTransparency
Definition: config.h:291
int ChannelInfoPos
Definition: config.h:316
#define MaxThemeName
Definition: config.h:61
virtual bool SetupParse(const char *Name, const char *Value)
Definition: plugin.c:105
cListObject * Next(void) const
Definition: tools.h:468
double OSDLeftP
Definition: config.h:318
bool Parse(const char *Name, const char *Value)
Definition: config.c:600
#define DEFINSTRECTIME
Definition: config.h:45
bool FromString(const char *s)
Definition: config.c:81
cSVDRPhost(void)
Definition: config.c:28
char FontOsd[MAXFONTNAME]
Definition: config.h:324
int LnbSLOF
Definition: config.h:271
int PositionerSwing
Definition: config.h:279
bool IsLocalhost(void)
Definition: config.c:57
int SVDRPTimeout
Definition: config.h:296
void Sort(void)
Definition: tools.c:2115
int PauseAtLastMark
Definition: config.h:346
int AdaptiveSkipTimeout
Definition: config.h:348
const char * Value(void)
Definition: config.h:241
int SubtitleLanguages[I18N_MAX_LANGUAGES+1]
Definition: config.h:289
int FoldersInTimerMenu
Definition: config.h:308
int TimeSource
Definition: config.h:282
int PauseOnMarkJump
Definition: config.h:344
#define MAXLIFETIME
Definition: config.h:44
cList< cNestedItem > * SubItems(void)
Definition: config.h:198
int EPGScanTimeout
Definition: config.h:293
int SubtitleOffset
Definition: config.h:290
int VideoFormat
Definition: config.h:313
cSetup Setup
Definition: config.c:373
int PauseKeyHandling
Definition: config.h:303
int SiteLon
Definition: config.h:277
Definition: config.h:246
int PositionerLastLon
Definition: config.h:280
in_addr_t mask
Definition: config.h:79
int OSDLeft
Definition: config.h:319
bool Accepts(in_addr_t Address)
Definition: config.c:62
int SplitEditedFiles
Definition: config.h:334
int Size(void) const
Definition: tools.h:551
int ColorKey3
Definition: config.h:311
int MinEventTimeout
Definition: config.h:337
const char * I18nLanguageCode(int Language)
Returns the three letter language code of the given Language (which is an index as returned by I18nCu...
Definition: i18n.c:223
int __BeginData__
Definition: config.h:258
int LnbFrequHi
Definition: config.h:273
cNestedItem(const char *Text, bool WithSubItems=false)
Definition: config.c:131
int ProgressDisplayTime
Definition: config.h:342
int RcRepeatDelay
Definition: config.h:299
static const char * LastReplayed(void)
Definition: menu.c:5463
int InstantRecordTime
Definition: config.h:270
int MaxVideoFileSize
Definition: config.h:333
cNestedItemList Folders
Definition: config.c:274
int ChannelInfoTime
Definition: config.h:317
const char * DefaultFontFix
Definition: font.c:26
int __EndData__
Definition: config.h:364
int PrimaryDVB
Definition: config.h:262
int SetSystemTime
Definition: config.h:281
int VpsMargin
Definition: config.h:306
void StoreLanguages(const char *Name, int *Values)
Definition: config.c:565
int UseDolbyDigital
Definition: config.h:315
T * First(void) const
Definition: tools.h:492
void Del(cListObject *Object, bool DeleteObject=true)
Definition: tools.c:2046
char FontFix[MAXFONTNAME]
Definition: config.h:326
int FirstDeviceIndex(int DeviceIndex) const
Returns the first device index (starting at 0) that uses the same sat cable number as the device with...
Definition: config.c:116
int MarginStop
Definition: config.h:285
int ShowChannelNamesWithSource
Definition: config.h:361
virtual int Compare(const cListObject &ListObject) const
Must return 0 if this object is equal to ListObject, a positive value if it is "greater", and a negative value if it is "smaller".
Definition: config.c:143
virtual ~cNestedItemList()
Definition: config.c:179
int AudioLanguages[I18N_MAX_LANGUAGES+1]
Definition: config.h:286
int ColorKey1
Definition: config.h:311
bool Load(const char *FileName)
Definition: config.c:540
const cStringList * I18nLanguages(void)
Returns the list of available languages.
Definition: i18n.c:201
static int FromString(const char *s)
Definition: sources.c:68
time_t NextWakeupTime
Definition: config.h:338
double OSDAspect
Definition: config.h:320
int PauseOnMarkSet
Definition: config.h:343
int UpdateChannels
Definition: config.h:314
char * skipspace(const char *s)
Definition: tools.h:200
bool ParseLanguages(const char *Value, int *Values)
Definition: config.c:584
bool Save(FILE *f)
Definition: config.c:366
int DelTimeshiftRec
Definition: config.h:335
int TimeoutRequChInfo
Definition: config.h:264
cList< cNestedItem > * subItems
Definition: config.h:192
#define isyslog(a...)
Definition: tools.h:35
double FontSmlSizeP
Definition: config.h:328
cSetup(void)
Definition: config.c:375
int EPGBugfixLevel
Definition: config.h:294
cSetup & operator=(const cSetup &s)
Definition: config.c:500
static cPlugin * GetPlugin(int Index)
Definition: plugin.c:457
int CurrentVolume
Definition: config.h:355
int FontOsdSize
Definition: config.h:330
int UseSmallFont
Definition: config.h:322
cNestedItemList(void)
Definition: config.c:174
int ColorKey0
Definition: config.h:311
bool Acceptable(in_addr_t Address)
Definition: config.c:294
int PositionerSpeed
Definition: config.h:278
int * array
Definition: config.h:90
struct in_addr addr
Definition: config.h:78
int MenuScrollWrap
Definition: config.h:266
bool Load(const char *FileName)
Definition: config.c:234
int MenuScrollPage
Definition: config.h:265
char NameInstantRecord[NAME_MAX+1]
Definition: config.h:269
int SupportTeletext
Definition: config.h:288
int AdaptiveSkipInitial
Definition: config.h:347
char * compactspace(char *s)
Definition: tools.c:213
int OSDHeight
Definition: config.h:319
int FontSmlSize
Definition: config.h:331
int DisplaySubtitles
Definition: config.h:287
int VideoDisplayFormat
Definition: config.h:312
int VolumeLinearize
Definition: config.h:357
char * Utf8Strn0Cpy(char *Dest, const char *Src, int n)
Copies at most n character bytes from Src to Dest, making sure that the resulting copy ends with a co...
Definition: tools.c:845
#define STANDARD_DVB
Definition: config.h:70
int OSDWidth
Definition: config.h:319
char OSDTheme[MaxThemeName]
Definition: config.h:261
cString InitialChannel
Definition: config.h:365
int VolumeSteps
Definition: config.h:356
const char * DefaultFontOsd
Definition: font.c:24
char OSDSkin[MaxSkinName]
Definition: config.h:260
bool Save(void)
Definition: config.c:258
int OSDMessageTime
Definition: config.h:321
int I18nLanguageIndex(const char *Code)
Returns the index of the language with the given three letter language Code.
Definition: i18n.c:228
int MarginStart
Definition: config.h:285
int SiteLat
Definition: config.h:276
Definition: runvdr.c:107
char * strreplace(char *s, char c1, char c2)
Definition: tools.c:139
int Size(void) const
Definition: config.h:94
char OSDLanguage[I18N_MAX_LOCALE_LEN]
Definition: config.h:259
int SubtitleBgTransparency
Definition: config.h:291
int ResumeID
Definition: config.h:353
int RcRepeatDelta
Definition: config.h:300
~cSatCableNumbers()
Definition: config.c:76
Definition: tools.h:168
int DefaultLifetime
Definition: config.h:301
int ShowRemainingTime
Definition: config.h:341
double OSDTopP
Definition: config.h:318
int DiSEqC
Definition: config.h:274