diff options
author | Roland Reichwein <mail@reichwein.it> | 2023-02-11 16:04:35 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2023-02-11 16:04:35 +0100 |
commit | 92a14d375c8cd9dabc32ccb6dcbdf83321af535f (patch) | |
tree | 5a0c22d993199f8fa0de1d18b78d5209ca9f4c81 /weblog.h | |
parent | df5e04b2dafde8ff3c87ba8412a9a728f8b24b7d (diff) |
Added config
Diffstat (limited to 'weblog.h')
-rw-r--r-- | weblog.h | 21 |
1 files changed, 4 insertions, 17 deletions
@@ -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<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 - ) 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; |