Added direct accessor for plugins map
This commit is contained in:
1 parent
e125cbe4fe
commit
deb8f59b12
1 file changed
+2
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user