From 803c6c6bf6340302f78171892bef599aa272c266 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 11 May 2002 18:00:00 +0200 Subject: Version 1.1.1 - Separated the actual DVB hardware OSD implementation from the abstract OSD interface. 'osdbase.c/.h' now implements the abstract OSD, while 'dvbosd.c/.h' is the actual implementation for the DVB hardware. This is in preparation for allowing additional kinds of OSD hardware implementations. - Fixed leftover references to the file FORMATS in MANUAL and svdrp.c. - Avoiding ambiguities in the cList template class in case one defines a "list of lists" (thanks to Stefan Huelswitt). - Simplified the basic cMenuSetupPage class for easier use in plugins. - Added setup parameters and a Setup menu to the 'hello' plugin example. - Fixed logging error message for unknown config parameters in plugins. - Rearranged cleanup sequence at the end of the main program. - Adapted PLUGINS.html to use the actual code examples from the 'hello' plugin. --- config.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'config.c') diff --git a/config.c b/config.c index 8290e73..eeb96eb 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.99 2002/05/05 09:10:00 kls Exp $ + * $Id: config.c 1.100 2002/05/11 12:05:22 kls Exp $ */ #include "config.h" @@ -1073,14 +1073,19 @@ bool cSetup::Load(const char *FileName) if (cConfig::Load(FileName, true)) { bool result = true; for (cSetupLine *l = First(); l; l = Next(l)) { + bool error = false; if (l->Plugin()) { cPlugin *p = cPluginManager::GetPlugin(l->Plugin()); if (p && !p->SetupParse(l->Name(), l->Value())) - result = false; + error = true; } else { if (!Parse(l->Name(), l->Value())) - result = false; + error = true; + } + if (error) { + esyslog(LOG_ERR, "ERROR: unknown config parameter: %s%s%s = %s", l->Plugin() ? l->Plugin() : "", l->Plugin() ? "." : "", l->Name(), l->Value()); + result = false; } } return result; -- cgit v1.2.3