From 92a14d375c8cd9dabc32ccb6dcbdf83321af535f Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 11 Feb 2023 16:04:35 +0100 Subject: Added config --- weblog.h | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) (limited to 'weblog.h') diff --git a/weblog.h b/weblog.h index 0994b91..85eb5b1 100644 --- a/weblog.h +++ b/weblog.h @@ -1,23 +1,10 @@ #pragma once -#include "../../plugin_interface.h" - -class weblog_plugin: public webserver_plugin_interface +class weblog { public: - weblog_plugin(); - ~weblog_plugin(); + weblog(); + ~weblog(); - 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; + void run(int argc, char* argv[]); }; - -extern "C" BOOST_SYMBOL_EXPORT weblog_plugin webserver_plugin; -weblog_plugin webserver_plugin; -- cgit v1.2.3