summaryrefslogtreecommitdiff
path: root/plugin.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-08-21 10:44:29 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-08-21 10:44:29 +0200
commit06a27f142b65cef811d7e0a5931d54ed15725a7d (patch)
tree9a66120247458d54463fbee543261cb567365b0d /plugin.h
parent7533b69e9b67d5d2e6df4bef8af17fa02c068f0d (diff)
downloadvdr-06a27f142b65cef811d7e0a5931d54ed15725a7d.tar.gz
vdr-06a27f142b65cef811d7e0a5931d54ed15725a7d.tar.bz2
Added 'Service' functions to the plugin interface
Diffstat (limited to 'plugin.h')
-rw-r--r--plugin.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugin.h b/plugin.h
index 3d56b175..3befbbba 100644
--- a/plugin.h
+++ b/plugin.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: plugin.h 1.8 2005/01/30 14:03:48 kls Exp $
+ * $Id: plugin.h 1.9 2005/08/21 09:32:08 kls Exp $
*/
#ifndef __PLUGIN_H
@@ -50,6 +50,8 @@ public:
void RegisterI18n(const tI18nPhrase * const Phrases);
+ virtual bool Service(const char *Id, void *Data = NULL);
+
static void SetConfigDirectory(const char *Dir);
static const char *ConfigDirectory(const char *PluginName = NULL);
};
@@ -88,6 +90,8 @@ public:
static bool HasPlugins(void);
static cPlugin *GetPlugin(int Index);
static cPlugin *GetPlugin(const char *Name);
+ static cPlugin *CallFirstService(const char *Id, void *Data = NULL);
+ static bool CallAllServices(const char *Id, void *Data = NULL);
void StopPlugins(void);
void Shutdown(void);
};