| 1138 | } |
| 1139 | |
| 1140 | Plugin *PluginManager::operator[] (std::string name) |
| 1141 | { |
| 1142 | std::lock_guard<std::recursive_mutex> lock{*plugin_mutex}; |
| 1143 | if (all_plugins.find(name) == all_plugins.end()) |
| 1144 | { |
| 1145 | if (Filesystem::isfile(getPluginPath(name))) |
| 1146 | addPlugin(name); |
| 1147 | } |
| 1148 | return (all_plugins.find(name) != all_plugins.end()) ? all_plugins[name] : NULL; |
| 1149 | } |
| 1150 | |
| 1151 | size_t PluginManager::size() |
| 1152 | { |
nothing calls this directly
no test coverage detected