summaryrefslogtreecommitdiffhomepage
path: root/plugin.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-04-09 18:30:32 +0200
committerRoland Reichwein <mail@reichwein.it>2020-04-09 18:30:32 +0200
commit0d157fb407a35f8afe6d6f0f4c2cc5cd5d5a1933 (patch)
tree86ccea82ebbe29197eacb9a85e8ec7548c5ae38c /plugin.h
parent2f42619303627db401e469e2fd65123cd794a378 (diff)
Prepared generate_page for static-files plugin
Diffstat (limited to 'plugin.h')
-rw-r--r--plugin.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugin.h b/plugin.h
index cc68524..18e5aca 100644
--- a/plugin.h
+++ b/plugin.h
@@ -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();
};