summaryrefslogtreecommitdiffhomepage
path: root/plugins/weblog/weblog.h
diff options
context:
space:
mode:
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;