1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Reintroduced the log message "deleting plugin: ..." when shutting down VDR

This commit is contained in:
Klaus Schmidinger 2006-04-14 11:51:13 +02:00
parent 6635a1d69e
commit b7181930c8
4 changed files with 13 additions and 7 deletions

View File

@ -4518,3 +4518,5 @@ Video Disk Recorder Revision History
- Using geteuid() to check whether VDR is running as user 'root' (suggested by - Using geteuid() to check whether VDR is running as user 'root' (suggested by
Tobias Grimm). Tobias Grimm).
- Added a missing "Key$" in skincurses.c (reported by Darren Salt). - Added a missing "Key$" in skincurses.c (reported by Darren Salt).
- Reintroduced the log message "deleting plugin: ..." when shutting down VDR (upon
request by Ville Skyttä, as in the initial patch from Christoph Haubrich).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: plugin.c 1.18 2006/04/09 14:16:17 kls Exp $ * $Id: plugin.c 1.19 2006/04/14 11:45:43 kls Exp $
*/ */
#include "plugin.h" #include "plugin.h"
@ -424,9 +424,13 @@ void cPluginManager::StopPlugins(void)
} }
} }
void cPluginManager::Shutdown(void) void cPluginManager::Shutdown(bool Log)
{ {
cDll *dll; cDll *dll;
while ((dll = dlls.Last()) != NULL) while ((dll = dlls.Last()) != NULL) {
cPlugin *p = dll->Plugin();
if (p && Log)
isyslog("deleting plugin: %s", p->Name());
dlls.Del(dll); dlls.Del(dll);
} }
}

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: plugin.h 1.10 2005/08/27 16:13:17 kls Exp $ * $Id: plugin.h 1.11 2006/04/14 11:42:48 kls Exp $
*/ */
#ifndef __PLUGIN_H #ifndef __PLUGIN_H
@ -95,7 +95,7 @@ public:
static cPlugin *CallFirstService(const char *Id, void *Data = NULL); static cPlugin *CallFirstService(const char *Id, void *Data = NULL);
static bool CallAllServices(const char *Id, void *Data = NULL); static bool CallAllServices(const char *Id, void *Data = NULL);
void StopPlugins(void); void StopPlugins(void);
void Shutdown(void); void Shutdown(bool Log = false);
}; };
#endif //__PLUGIN_H #endif //__PLUGIN_H

4
vdr.c
View File

@ -22,7 +22,7 @@
* *
* The project's page is at http://www.cadsoft.de/vdr * The project's page is at http://www.cadsoft.de/vdr
* *
* $Id: vdr.c 1.255 2006/04/14 11:01:18 kls Exp $ * $Id: vdr.c 1.256 2006/04/14 11:45:05 kls Exp $
*/ */
#include <getopt.h> #include <getopt.h>
@ -1179,7 +1179,7 @@ Exit:
Setup.Save(); Setup.Save();
} }
cDevice::Shutdown(); cDevice::Shutdown();
PluginManager.Shutdown(); PluginManager.Shutdown(true);
cSchedules::Cleanup(true); cSchedules::Cleanup(true);
ReportEpgBugFixStats(); ReportEpgBugFixStats();
if (WatchdogTimeout > 0) if (WatchdogTimeout > 0)