diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-04-19 19:46:14 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-04-19 19:46:14 +0200 |
commit | 8b93572b386256c53c12012be87adabd73d80520 (patch) | |
tree | aee710ea38d6b7487f49d191c5c63b3306ee6950 /plugins/weblog/weblog.h | |
parent | e093da01dcefac72502b4fa0c8375760cf98934e (diff) |
Weblog (WIP)
Diffstat (limited to 'plugins/weblog/weblog.h')
-rw-r--r-- | plugins/weblog/weblog.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/weblog/weblog.h b/plugins/weblog/weblog.h index 5433e1c..28b4ab3 100644 --- a/plugins/weblog/weblog.h +++ b/plugins/weblog/weblog.h @@ -1,14 +1,20 @@ #pragma once -#include "../plugin_interface.h" +#include "../../plugin_interface.h" class weblog_plugin: public webserver_plugin_interface { public: weblog_plugin(); ~weblog_plugin(); + std::string name(); - std::string generate_page(std::string path); + std::string generate_page( + std::function<std::string(const std::string& key)>& GetServerParam, + std::function<std::string(const std::string& key)>& GetRequestParam, // request including body (POST...) + std::function<void(const std::string& key, const std::string& value)>& SetResponseHeader // to be added to result string + ); + }; extern "C" BOOST_SYMBOL_EXPORT weblog_plugin webserver_plugin; |