summaryrefslogtreecommitdiffhomepage
path: root/plugin_interface.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-04-04 13:21:59 +0200
committerRoland Reichwein <mail@reichwein.it>2020-04-04 13:21:59 +0200
commit95d5acc8c7e60255b19e7084e374eb26cc5d0ba3 (patch)
treed2ebf474c5076341a30cdeb8035f1843db240d16 /plugin_interface.h
parent2be63668af1cadf846ae2d44a0fd5c909ceaf47e (diff)
Versioned plugins
Diffstat (limited to 'plugin_interface.h')
-rw-r--r--plugin_interface.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin_interface.h b/plugin_interface.h
index 72da0b9..e67d20a 100644
--- a/plugin_interface.h
+++ b/plugin_interface.h
@@ -6,6 +6,9 @@
class BOOST_SYMBOL_VISIBLE webserver_plugin_interface {
public:
+ static const int interface_version {1};
+ virtual int version() { return interface_version; }
+ virtual std::string name() = 0;
virtual std::string generate_page(std::string path) = 0;
virtual ~webserver_plugin_interface(){}
};