summaryrefslogtreecommitdiffhomepage
path: root/plugins/weblog/weblog.h
blob: 28b4ab3653a94babc7756e2c5dc5c5fbea0c67c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include "../../plugin_interface.h"

class weblog_plugin: public webserver_plugin_interface 
{
public:
 weblog_plugin();
 ~weblog_plugin();
 
 std::string name();
 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
 );

};

extern "C" BOOST_SYMBOL_EXPORT weblog_plugin webserver_plugin;
weblog_plugin webserver_plugin;