diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-05-12 10:20:17 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-05-12 10:20:17 +0200 |
commit | 5d733e59ee0b0de00cf4967287ef7f431828726a (patch) | |
tree | 79e51986521582cc10f8a6cf0ae0dd05153cc96f /plugin.h | |
parent | 01c68def34bc8b1d2a2b5ac0a21c6eb4a13e04e3 (diff) | |
download | vdr-5d733e59ee0b0de00cf4967287ef7f431828726a.tar.gz vdr-5d733e59ee0b0de00cf4967287ef7f431828726a.tar.bz2 |
Added the cPlugin::Housekeeping() function
Diffstat (limited to 'plugin.h')
-rw-r--r-- | plugin.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: plugin.h 1.2 2002/05/12 09:05:06 kls Exp $ + * $Id: plugin.h 1.3 2002/05/12 09:58:54 kls Exp $ */ #ifndef __PLUGIN_H @@ -33,6 +33,7 @@ public: virtual bool ProcessArgs(int argc, char *argv[]); virtual bool Start(void); + virtual void Housekeeping(void); virtual const char *MainMenuEntry(void); virtual cOsdMenu *MainMenuAction(void); @@ -64,6 +65,8 @@ class cPluginManager { private: static cPluginManager *pluginManager; char *directory; + time_t lastHousekeeping; + int nextHousekeeping; cDlls dlls; public: cPluginManager(const char *Directory); @@ -72,6 +75,7 @@ public: void AddPlugin(const char *Args); bool LoadPlugins(bool Log = false); bool StartPlugins(void); + void Housekeeping(void); static bool HasPlugins(void); static cPlugin *GetPlugin(int Index); static cPlugin *GetPlugin(const char *Name); |