summaryrefslogtreecommitdiffhomepage
path: root/plugins/webbox/webbox.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-04-11 16:56:36 +0200
committerRoland Reichwein <mail@reichwein.it>2020-04-11 16:56:36 +0200
commit77a68fbe16246245937c5d692bb8c89dc14d7800 (patch)
treea20a6c4251bf5970e8d3a40da17d456a3544117c /plugins/webbox/webbox.h
parent4640ea1a9249c08b749f174cb19f6dc61a505a00 (diff)
Webbox (WIP)
Diffstat (limited to 'plugins/webbox/webbox.h')
-rw-r--r--plugins/webbox/webbox.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/webbox/webbox.h b/plugins/webbox/webbox.h
index 037a725..d6d26c1 100644
--- a/plugins/webbox/webbox.h
+++ b/plugins/webbox/webbox.h
@@ -8,7 +8,11 @@ public:
webbox_plugin();
~webbox_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 webbox_plugin webserver_plugin;