From deb8f59b12f084b6b3b5d81539b51b19a802346f Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Thu, 3 Nov 2022 20:02:30 +0100 Subject: [PATCH] Added direct accessor for plugins map --- plugin.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin.hpp b/plugin.hpp index 6f4b9a5..45275f6 100644 --- a/plugin.hpp +++ b/plugin.hpp @@ -55,6 +55,8 @@ namespace sc { static size_t count() { return plugins.size(); } + static const std::map>& all() { return plugins; } + plugin(const std::string& path) : _path {path} { _plugin = dlopen(path.c_str(), RTLD_LAZY);