summaryrefslogtreecommitdiff
path: root/newplugin
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-05-09 15:27:46 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-05-09 15:27:46 +0200
commitdc8fd12f91713c2eec49ae38ab34f09fd7e73369 (patch)
treedb9d260ccc995af10dbec6b7e1485679f600a341 /newplugin
parentaaeaf4582dd40677965f562283cf67cf0986eb65 (diff)
downloadvdr-dc8fd12f91713c2eec49ae38ab34f09fd7e73369.tar.gz
vdr-dc8fd12f91713c2eec49ae38ab34f09fd7e73369.tar.bz2
Introduced cPlugin::Initialize()
Diffstat (limited to 'newplugin')
-rwxr-xr-xnewplugin9
1 files changed, 8 insertions, 1 deletions
diff --git a/newplugin b/newplugin
index 1f4d5da1..e4742663 100755
--- a/newplugin
+++ b/newplugin
@@ -12,7 +12,7 @@
# See the main source file 'vdr.c' for copyright information and
# how to reach the author.
#
-# $Id: newplugin 1.14 2002/12/13 14:51:46 kls Exp $
+# $Id: newplugin 1.15 2003/05/09 14:59:28 kls Exp $
$PLUGIN_NAME = $ARGV[0] || die "Usage: newplugin <name>\n";
@@ -162,6 +162,7 @@ public:
virtual const char *Description(void) { return DESCRIPTION; }
virtual const char *CommandLineHelp(void);
virtual bool ProcessArgs(int argc, char *argv[]);
+ virtual bool Initialize(void);
virtual bool Start(void);
virtual void Housekeeping(void);
virtual const char *MainMenuEntry(void) { return MAINMENUENTRY; }
@@ -194,6 +195,12 @@ bool cPlugin${PLUGIN_CLASS}::ProcessArgs(int argc, char *argv[])
return true;
}
+bool cPlugin${PLUGIN_CLASS}::Initialize(void)
+{
+ // Initialize any background activities the plugin shall perform.
+ return true;
+}
+
bool cPlugin${PLUGIN_CLASS}::Start(void)
{
// Start any background activities the plugin shall perform.