summaryrefslogtreecommitdiffhomepage
path: root/plugins/weblog/weblog.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-04-19 19:46:14 +0200
committerRoland Reichwein <mail@reichwein.it>2020-04-19 19:46:14 +0200
commit8b93572b386256c53c12012be87adabd73d80520 (patch)
treeaee710ea38d6b7487f49d191c5c63b3306ee6950 /plugins/weblog/weblog.h
parente093da01dcefac72502b4fa0c8375760cf98934e (diff)
Weblog (WIP)
Diffstat (limited to 'plugins/weblog/weblog.h')
-rw-r--r--plugins/weblog/weblog.h10
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;