From 4c4a001cacd9c3e1c2552dbcaf50165091a82ac1 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 11 Feb 2023 11:24:22 +0100 Subject: Separated out weblog from webserver --- weblog.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 weblog.h (limited to 'weblog.h') diff --git a/weblog.h b/weblog.h new file mode 100644 index 0000000..0994b91 --- /dev/null +++ b/weblog.h @@ -0,0 +1,23 @@ +#pragma once + +#include "../../plugin_interface.h" + +class weblog_plugin: public webserver_plugin_interface +{ +public: + weblog_plugin(); + ~weblog_plugin(); + + std::string name() override; + + std::string generate_page( + std::function& GetServerParam, + std::function& GetRequestParam, // request including body (POST...) + std::function& SetResponseHeader // to be added to result string + ) override; + + bool has_own_authentication() override; +}; + +extern "C" BOOST_SYMBOL_EXPORT weblog_plugin webserver_plugin; +weblog_plugin webserver_plugin; -- cgit v1.2.3