comparison plugin/NativeVampPluginFactory.cpp @ 1246:75aefcc9f07d piper

Use plugin scan results to inform the list requests issued to Piper servers
author Chris Cannam
date Thu, 03 Nov 2016 14:14:09 +0000
parents 5d886b7b4029
children 8f076d02569a
comparison
equal deleted inserted replaced
1245:0492e54ccd56 1246:75aefcc9f07d
79 79
80 if (!m_identifiers.empty()) { 80 if (!m_identifiers.empty()) {
81 return m_identifiers; 81 return m_identifiers;
82 } 82 }
83 83
84 QStringList candidates = PluginScan::getInstance()->getCandidateLibrariesFor 84 auto candidates = PluginScan::getInstance()->getCandidateLibrariesFor
85 (PluginScan::VampPlugin); 85 (PluginScan::VampPlugin);
86 86
87 for (QString soname : candidates) { 87 for (auto candidate : candidates) {
88
89 QString soname = candidate.libraryPath;
88 90
89 void *libraryHandle = DLOPEN(soname, RTLD_LAZY | RTLD_LOCAL); 91 void *libraryHandle = DLOPEN(soname, RTLD_LAZY | RTLD_LOCAL);
90 92
91 if (!libraryHandle) { 93 if (!libraryHandle) {
92 cerr << "WARNING: NativeVampPluginFactory::getPluginIdentifiers: Failed to load library " << soname << ": " << DLERROR() << endl; 94 cerr << "WARNING: NativeVampPluginFactory::getPluginIdentifiers: Failed to load library " << soname << ": " << DLERROR() << endl;