From 9ba353b9d8f6c4336ca4b6001fe5f22b85a8fb81 Mon Sep 17 00:00:00 2001 From: Jordi Vilalta Prat Date: Mon, 12 May 2008 01:26:43 +0000 Subject: Keep separated arrays for each type of plugin svn-id: r32046 --- base/plugins.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'base/plugins.h') diff --git a/base/plugins.h b/base/plugins.h index 14ce2a3aa4..3f2d19fd50 100644 --- a/base/plugins.h +++ b/base/plugins.h @@ -174,7 +174,7 @@ protected: class PluginManager : public Common::Singleton { typedef Common::List ProviderList; private: - PluginList _plugins; + PluginList _plugins[PLUGIN_TYPE_MAX]; ProviderList _providers; bool tryLoadPlugin(Plugin *plugin); @@ -189,9 +189,9 @@ public: void loadPlugins(); void unloadPlugins(); - void unloadPluginsExcept(const Plugin *plugin); + void unloadPluginsExcept(PluginType type, const Plugin *plugin); - const PluginList &getPlugins() { return _plugins; } + const PluginList &getPlugins(PluginType t) { return _plugins[t]; } }; -- cgit v1.2.3