From dcfbdc5844474ef8e577d5f1c2bfd2e71c43e5fc Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 24 Aug 2009 04:56:07 +0200 Subject: simplifications by exposing g_pPluginManager Signed-off-by: Denys Vlasenko --- src/Daemon/MiddleWare.h | 39 ++++----------------------------------- 1 file changed, 4 insertions(+), 35 deletions(-) (limited to 'src/Daemon/MiddleWare.h') diff --git a/src/Daemon/MiddleWare.h b/src/Daemon/MiddleWare.h index 4b15af3e..d744f5d6 100644 --- a/src/Daemon/MiddleWare.h +++ b/src/Daemon/MiddleWare.h @@ -56,44 +56,13 @@ typedef enum { typedef std::map report_status_t; typedef std::map map_analyzer_actions_and_reporters_t; + +extern CPluginManager* g_pPluginManager; + + void CMiddleWare(const std::string& pPluginsConfDir, const std::string& pPluginsLibDir); void CMiddleWare_deinit(); -/** - * Register particular plugin. - * @param pName A plugin name. - */ -void RegisterPlugin(const std::string& pName); -/** - * A method, which unregister particular plugin. - * @param pName A plugin name. - */ -void UnRegisterPlugin(const std::string& pName); -/** - * A method, which sets up a plugin. The settings are also saved in home - * directory of an user. - * @param pName A plugin name. - * @param pUID An uid of user. - * @param pSettings A plugin's settings. - */ -void SetPluginSettings(const std::string& pName, - const std::string& pUID, - const map_plugin_settings_t& pSettings); -/** - * A method, which returns plugin's settings according to user. - * @param pName A plugin name. - * @param pUID An uid of user. - * @return Plugin's settings accorting to user. - */ -map_plugin_settings_t GetPluginSettings(const std::string& pName, - const std::string& pUID); -/** - * A method, which gets all plugins info (event those plugins which are - * disabled). It can be send via DBus to GUI and displayed to an user. - * Then a user can fill all needed informations like URLs etc. - * @return A vector of maps . - */ -vector_map_string_string_t GetPluginsInfo(); /** * A method, which takes care of getting all additional data needed * for computing UUIDs and creating a report for particular analyzer -- cgit