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 /newplugin | |
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 'newplugin')
-rwxr-xr-x | newplugin | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -12,7 +12,7 @@ # See the main source file 'vdr.c' for copyright information and # how to reach the author. # -# $Id: newplugin 1.25 2006/04/16 09:04:21 kls Exp $ +# $Id: newplugin 1.26 2006/04/17 09:49:13 kls Exp $ $PLUGIN_NAME = $ARGV[0] || die "Usage: newplugin <name>\n"; @@ -165,6 +165,7 @@ public: virtual bool Start(void); virtual void Stop(void); virtual void Housekeeping(void); + virtual void MainThreadHook(void); virtual cString Active(void); virtual const char *MainMenuEntry(void) { return MAINMENUENTRY; } virtual cOsdObject *MainMenuAction(void); @@ -221,6 +222,12 @@ void cPlugin${PLUGIN_CLASS}::Housekeeping(void) // Perform any cleanup or other regular tasks. } +void cPlugin${PLUGIN_CLASS}::MainThreadHook(void) +{ + // Perform actions in the context of the main program thread. + // WARNING: Use with great care - see PLUGINS.html! +} + cString cPlugin${PLUGIN_CLASS}::Active(void) { // Return a message string if shutdown should be postponed |