diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-04-17 10:02:18 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-04-17 10:02:18 +0200 |
commit | 8433190d5a461248552d3e41c5863ca608f12cda (patch) | |
tree | 87d5496d7903b38f6f5cf02e4385043b48ac562f /plugin.c | |
parent | acf716f1ef5e4cdbc2b38fecdf4d46b2ad75b747 (diff) | |
download | vdr-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.c | 15 |
1 files changed, 14 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.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) { |