summaryrefslogtreecommitdiffhomepage
path: root/config.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-04-09 11:38:48 +0200
committerRoland Reichwein <mail@reichwein.it>2020-04-09 11:38:48 +0200
commit2f42619303627db401e469e2fd65123cd794a378 (patch)
treefb9944f9838b9d19be3e2ce39e6be6b71f9c469c /config.h
parentf5e2c43abe9477fba6255c734faf2822e7f2f9c5 (diff)
Load only configured plugins, add plugins
Diffstat (limited to 'config.h')
-rw-r--r--config.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/config.h b/config.h
index 801b5fa..72ce9b1 100644
--- a/config.h
+++ b/config.h
@@ -70,9 +70,16 @@ class Config
const std::vector<Site>& Sites() const;
const std::vector<Socket>& Sockets() const;
+ //
+ // secondary calculation functions
+ //
+
/// param[in] requested_host e.g. www.domain.com:8080 or www.domain.com
std::string DocRoot(const Socket& socket, const std::string& requested_host, const std::string& requested_path) const;
+ // return true iff plugin "name" is mentioned in config
+ bool PluginIsConfigured(const std::string& name) const;
+
void dump() const;
};