summaryrefslogtreecommitdiffhomepage
path: root/weblog.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-02-11 16:04:35 +0100
committerRoland Reichwein <mail@reichwein.it>2023-02-11 16:04:35 +0100
commit92a14d375c8cd9dabc32ccb6dcbdf83321af535f (patch)
tree5a0c22d993199f8fa0de1d18b78d5209ca9f4c81 /weblog.h
parentdf5e04b2dafde8ff3c87ba8412a9a728f8b24b7d (diff)
Added config
Diffstat (limited to 'weblog.h')
-rw-r--r--weblog.h21
1 files changed, 4 insertions, 17 deletions
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<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;