| 91 | namespace common { |
| 92 | |
| 93 | DependencyModule::DependencyModule(const char* plugin_file_name, |
| 94 | const char** paths) |
| 95 | : handle(nullptr) |
| 96 | , logger(common::loggerFactory("platform")) |
| 97 | , version(-1, -1) { |
| 98 | // TODO(umar): Implement handling of non-standard paths |
| 99 | UNUSED(paths); |
| 100 | if (plugin_file_name) { |
| 101 | auto fileNames = libNames(plugin_file_name, ""); |
| 102 | AF_TRACE("Attempting to load: {}", fileNames[0]); |
| 103 | handle = loadLibrary(fileNames[0].c_str()); |
| 104 | if (handle) { |
| 105 | AF_TRACE("Found: {}", fileNames[0]); |
| 106 | } else { |
| 107 | AF_TRACE("Unable to open {}", plugin_file_name); |
| 108 | } |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | DependencyModule::DependencyModule( |
| 113 | const vector<string>& plugin_base_file_name, const vector<string>& suffixes, |
nothing calls this directly
no test coverage detected