Added direct accessor for plugins map

This commit is contained in:
Bob Polis 2022-11-03 20:02:30 +01:00
parent e125cbe4fe
commit deb8f59b12

View File

@ -55,6 +55,8 @@ namespace sc {
static size_t count() { return plugins.size(); } static size_t count() { return plugins.size(); }
static const std::map<std::string, plugin<T>>& all() { return plugins; }
plugin(const std::string& path) : _path {path} { plugin(const std::string& path) : _path {path} {
_plugin = dlopen(path.c_str(), RTLD_LAZY); _plugin = dlopen(path.c_str(), RTLD_LAZY);