comparison Plugins/Engine/PluginsManager.cpp @ 1323:5a92665dee23

Sample plugin: Serve folders
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 13 Feb 2015 14:28:16 +0100
parents 7b6925b0890d
children afaa55d42ddd
comparison
equal deleted inserted replaced
1322:f497a72d9f71 1323:5a92665dee23
290 ScanFolderForPlugins(path, true); 290 ScanFolderForPlugins(path, true);
291 } 291 }
292 } 292 }
293 else 293 else
294 { 294 {
295 if (boost::filesystem::extension(it->path()) == PLUGIN_EXTENSION) 295 std::string extension = boost::filesystem::extension(it->path());
296 Toolbox::ToLowerCase(extension);
297
298 if (extension == PLUGIN_EXTENSION)
296 { 299 {
297 LOG(INFO) << "Found a shared library: " << it->path(); 300 LOG(INFO) << "Found a shared library: " << it->path();
298 301
299 SharedLibrary plugin(path); 302 SharedLibrary plugin(path);
300 if (IsOrthancPlugin(plugin)) 303 if (IsOrthancPlugin(plugin))