From 8b93572b386256c53c12012be87adabd73d80520 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 19 Apr 2020 19:46:14 +0200 Subject: Weblog (WIP) --- plugins/weblog/weblog.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'plugins/weblog/weblog.h') 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& GetServerParam, + std::function& GetRequestParam, // request including body (POST...) + std::function& SetResponseHeader // to be added to result string + ); + }; extern "C" BOOST_SYMBOL_EXPORT weblog_plugin webserver_plugin; -- cgit v1.2.3