diff options
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; |