diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-08-27 16:42:28 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-08-27 16:42:28 +0200 |
commit | 6445b9a0864a945d50e5ea4744f3bfa4ee8622dd (patch) | |
tree | 3b1759d7d98226656ee52bddab007e1c48847dc3 /newplugin | |
parent | 110c64f56db10405446cafb17a1c18308fff0b96 (diff) | |
download | vdr-6445b9a0864a945d50e5ea4744f3bfa4ee8622dd.tar.gz vdr-6445b9a0864a945d50e5ea4744f3bfa4ee8622dd.tar.bz2 |
Implemented SVDRP command for plugins
Diffstat (limited to 'newplugin')
-rwxr-xr-x | newplugin | 16 |
1 files changed, 15 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.19 2005/08/21 09:32:08 kls Exp $ +# $Id: newplugin 1.20 2005/08/27 16:13:29 kls Exp $ $PLUGIN_NAME = $ARGV[0] || die "Usage: newplugin <name>\n"; @@ -171,6 +171,8 @@ public: virtual cMenuSetupPage *SetupMenu(void); virtual bool SetupParse(const char *Name, const char *Value); virtual bool Service(const char *Id, void *Data = NULL); + virtual const char **SVDRPHelpPages(void); + virtual cString SVDRPCommand(const char *Command, const char *Option, int &ReplyCode); }; cPlugin${PLUGIN_CLASS}::cPlugin$PLUGIN_CLASS(void) @@ -243,6 +245,18 @@ bool cPlugin${PLUGIN_CLASS}::Service(const char *Id, void *Data) return false; } +const char **cPlugin${PLUGIN_CLASS}::SVDRPHelpPages(vo<F3>id) +{ + // Return help text for SVDRP commands this plugin implements + return NULL; +} + +const char *cPlugin${PLUGIN_CLASS}::SVDRPCommand(const char *Command, const char *Option, int &ReplyCode) +{ + // Process SVDRP commands this plugin implements + return NULL; +} + VDRPLUGINCREATOR(cPlugin$PLUGIN_CLASS); // Don't touch this! }; |