From 0d8f65d480c33bff81c8af6bc7ddc6ce7a142bfd Mon Sep 17 00:00:00 2001 From: csoler Date: Mon, 27 Feb 2012 18:41:21 +0000 Subject: [PATCH] fixed connexion of setInterfaces for all plugins git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5001 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/plugins/pluginmanager.cc | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/libretroshare/src/plugins/pluginmanager.cc b/libretroshare/src/plugins/pluginmanager.cc index 39a880160..e3ff4cdd3 100644 --- a/libretroshare/src/plugins/pluginmanager.cc +++ b/libretroshare/src/plugins/pluginmanager.cc @@ -50,12 +50,11 @@ void RsPluginManager::setInterfaces(RsPlugInInterfaces &interfaces) std::cerr << "RsPluginManager::setInterfaces() " << std::endl; for(uint32_t i=0;i<_plugins.size();++i) - - if(_plugins[i].plugin != NULL && _plugins[i].plugin->rs_cache_service() != NULL) - { - _plugins[i].plugin->setInterfaces(interfaces); - std::cerr << " setting iterface for plugin " << _plugins[i].plugin->getPluginName() << ", with RS_ID " << _plugins[i].plugin->rs_service_id() << std::endl ; - } + if(_plugins[i].plugin != NULL) + { + std::cerr << " setting iterface for plugin " << _plugins[i].plugin->getPluginName() << ", with RS_ID " << _plugins[i].plugin->rs_service_id() << std::endl ; + _plugins[i].plugin->setInterfaces(interfaces); + } } void RsPluginManager::setCacheDirectories(const std::string& local_cache, const std::string& remote_cache) @@ -263,7 +262,7 @@ bool RsPluginManager::loadPlugin(const std::string& plugin_name) pinfo.status = PLUGIN_STATUS_LOADED ; pinfo.plugin = p ; - p->setPlugInHandler(this); // WIN fix, cannot share global space with shared libraries + p->setPlugInHandler(this); // WIN fix, cannot share global space with shared libraries pinfo.info_string = "" ; return true;