diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-08-21 10:44:29 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-08-21 10:44:29 +0200 |
commit | 06a27f142b65cef811d7e0a5931d54ed15725a7d (patch) | |
tree | 9a66120247458d54463fbee543261cb567365b0d /newplugin | |
parent | 7533b69e9b67d5d2e6df4bef8af17fa02c068f0d (diff) | |
download | vdr-06a27f142b65cef811d7e0a5931d54ed15725a7d.tar.gz vdr-06a27f142b65cef811d7e0a5931d54ed15725a7d.tar.bz2 |
Added 'Service' functions to the plugin interface
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.18 2005/01/30 13:50:05 kls Exp $ +# $Id: newplugin 1.19 2005/08/21 09:32:08 kls Exp $ $PLUGIN_NAME = $ARGV[0] || die "Usage: newplugin <name>\n"; @@ -170,6 +170,7 @@ public: virtual cOsdObject *MainMenuAction(void); virtual cMenuSetupPage *SetupMenu(void); virtual bool SetupParse(const char *Name, const char *Value); + virtual bool Service(const char *Id, void *Data = NULL); }; cPlugin${PLUGIN_CLASS}::cPlugin$PLUGIN_CLASS(void) @@ -236,6 +237,12 @@ bool cPlugin${PLUGIN_CLASS}::SetupParse(const char *Name, const char *Value) return false; } +bool cPlugin${PLUGIN_CLASS}::Service(const char *Id, void *Data) +{ + // Handle custom service requests from other plugins + return false; +} + VDRPLUGINCREATOR(cPlugin$PLUGIN_CLASS); // Don't touch this! }; |