Mercurial > irccd
diff tests/src/libirccd/dynlib-plugin/test_plugin.cpp @ 707:48afa8c41f50
Irccd: verify dynlib_plugin major version too
While here, fix the dynlib_plugin test that was not updated at that time.
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 07 Jul 2018 08:56:25 +0200 |
parents | 8d93e415c3b4 |
children | 16e83b636cb8 |
line wrap: on
line diff
--- a/tests/src/libirccd/dynlib-plugin/test_plugin.cpp Fri Jul 06 19:32:54 2018 +0200 +++ b/tests/src/libirccd/dynlib-plugin/test_plugin.cpp Sat Jul 07 08:56:25 2018 +0200 @@ -120,8 +120,20 @@ } }; -extern "C" BOOST_SYMBOL_EXPORT test_plugin irccd_plugin_test_plugin; +extern "C" { + +BOOST_SYMBOL_EXPORT +auto irccd_abi_test_plugin() -> version +{ + return version(); +} -test_plugin irccd_plugin_test_plugin("test", ""); +BOOST_SYMBOL_EXPORT +auto irccd_init_test_plugin() -> std::unique_ptr<plugin> +{ + return std::make_unique<test_plugin>("testplugin", ""); +} + +} // !C } // !irccd