diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-05-12 09:24:45 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-05-12 09:24:45 +0200 |
commit | 01c68def34bc8b1d2a2b5ac0a21c6eb4a13e04e3 (patch) | |
tree | bce1156fd51546cb0909f3c5f88ffdef563d177e /plugin.c | |
parent | 7993e4c06f845e0a884bb68015e39f549f202ad2 (diff) | |
download | vdr-01c68def34bc8b1d2a2b5ac0a21c6eb4a13e04e3.tar.gz vdr-01c68def34bc8b1d2a2b5ac0a21c6eb4a13e04e3.tar.bz2 |
Changed the cPlugin::Start() function to return a boolean value
Diffstat (limited to 'plugin.c')
-rw-r--r-- | plugin.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: plugin.c 1.1 2002/05/09 16:26:56 kls Exp $ + * $Id: plugin.c 1.2 2002/05/12 09:04:51 kls Exp $ */ #include "plugin.h" @@ -45,8 +45,9 @@ bool cPlugin::ProcessArgs(int argc, char *argv[]) return true; } -void cPlugin::Start(void) +bool cPlugin::Start(void) { + return true; } const char *cPlugin::MainMenuEntry(void) @@ -268,7 +269,7 @@ bool cPluginManager::LoadPlugins(bool Log) return true; } -void cPluginManager::StartPlugins(void) +bool cPluginManager::StartPlugins(void) { for (cDll *dll = dlls.First(); dll; dll = dlls.Next(dll)) { cPlugin *p = dll->Plugin(); @@ -277,9 +278,11 @@ void cPluginManager::StartPlugins(void) Setup.OSDLanguage = 0; // the i18n texts are only available _after_ Start() isyslog(LOG_INFO, "starting plugin: %s (%s): %s", p->Name(), p->Version(), p->Description()); Setup.OSDLanguage = Language; - dll->Plugin()->Start(); + if (!dll->Plugin()->Start()) + return false; } } + return true; } bool cPluginManager::HasPlugins(void) |