summaryrefslogtreecommitdiff
path: root/plugin.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-04-17 10:02:18 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-04-17 10:02:18 +0200
commit8433190d5a461248552d3e41c5863ca608f12cda (patch)
tree87d5496d7903b38f6f5cf02e4385043b48ac562f /plugin.c
parentacf716f1ef5e4cdbc2b38fecdf4d46b2ad75b747 (diff)
downloadvdr-8433190d5a461248552d3e41c5863ca608f12cda.tar.gz
vdr-8433190d5a461248552d3e41c5863ca608f12cda.tar.bz2
The new function cPlugin::MainThreadHook() can be used by plugins to perform actions in the context of the main program thread
Diffstat (limited to 'plugin.c')
-rw-r--r--plugin.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/plugin.c b/plugin.c
index 88841899..82cbd692 100644
--- a/plugin.c
+++ b/plugin.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: plugin.c 1.21 2006/04/16 09:23:30 kls Exp $
+ * $Id: plugin.c 1.22 2006/04/17 09:20:05 kls Exp $
*/
#include "plugin.h"
@@ -70,6 +70,10 @@ void cPlugin::Housekeeping(void)
{
}
+void cPlugin::MainThreadHook(void)
+{
+}
+
cString cPlugin::Active(void)
{
return NULL;
@@ -370,6 +374,15 @@ void cPluginManager::Housekeeping(void)
}
}
+void cPluginManager::MainThreadHook(void)
+{
+ for (cDll *dll = pluginManager->dlls.First(); dll; dll = pluginManager->dlls.Next(dll)) {
+ cPlugin *p = dll->Plugin();
+ if (p)
+ p->MainThreadHook();
+ }
+}
+
bool cPluginManager::Active(const char *Prompt)
{
if (pluginManager) {