diff options
Diffstat (limited to 'plugin.h')
-rw-r--r-- | plugin.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -8,14 +8,18 @@ #include <memory> #include <unordered_map> +typedef boost::shared_ptr<webserver_plugin_interface> plugin_type; +typedef std::unordered_map<std::string, plugin_type> plugins_container_type; + class PluginLoader { Config& m_config; - std::unordered_map<std::string, boost::shared_ptr<webserver_plugin_interface>> m_plugins; + plugins_container_type m_plugins; public: PluginLoader(Config& config); void load_plugins(); // Load all plugins from configured paths bool validate_config(); // Check if all configured plugins exist + plugins_container_type& get_plugins(); }; |