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 /plugin.h | |
parent | 7533b69e9b67d5d2e6df4bef8af17fa02c068f0d (diff) | |
download | vdr-06a27f142b65cef811d7e0a5931d54ed15725a7d.tar.gz vdr-06a27f142b65cef811d7e0a5931d54ed15725a7d.tar.bz2 |
Added 'Service' functions to the plugin interface
Diffstat (limited to 'plugin.h')
-rw-r--r-- | plugin.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); }; |