comparison 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
comparison
equal deleted inserted replaced
706:bd7feaa002cb 707:48afa8c41f50
118 { 118 {
119 config_["whois"] = "true"; 119 config_["whois"] = "true";
120 } 120 }
121 }; 121 };
122 122
123 extern "C" BOOST_SYMBOL_EXPORT test_plugin irccd_plugin_test_plugin; 123 extern "C" {
124 124
125 test_plugin irccd_plugin_test_plugin("test", ""); 125 BOOST_SYMBOL_EXPORT
126 auto irccd_abi_test_plugin() -> version
127 {
128 return version();
129 }
130
131 BOOST_SYMBOL_EXPORT
132 auto irccd_init_test_plugin() -> std::unique_ptr<plugin>
133 {
134 return std::make_unique<test_plugin>("testplugin", "");
135 }
136
137 } // !C
126 138
127 } // !irccd 139 } // !irccd