From 2bd8622f4bd71d884039467b056f478508652c6a Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 20 Apr 2016 07:51:25 -0400 Subject: [PATCH] fix missing EXPORT annotation of functions in the test utility library (#631) --- test/make_torrent.hpp | 11 +++++++++-- test/peer_server.hpp | 11 ++++++++--- test/print_alerts.hpp | 2 +- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/test/make_torrent.hpp b/test/make_torrent.hpp index 5d701f737..a385170a8 100644 --- a/test/make_torrent.hpp +++ b/test/make_torrent.hpp @@ -30,10 +30,14 @@ POSSIBILITY OF SUCH DAMAGE. */ +#ifndef MAKE_TORRENT_HPP +#define MAKE_TORRENT_HPP + #include "libtorrent/torrent_info.hpp" #include #include #include +#include "test.hpp" enum flags_t { @@ -56,7 +60,10 @@ struct torrent_args std::string m_http_seed; }; -boost::shared_ptr make_test_torrent(torrent_args const& args); +EXPORT boost::shared_ptr + make_test_torrent(torrent_args const& args); -void generate_files(libtorrent::torrent_info const& ti, std::string const& path, bool random = false); +EXPORT void generate_files(libtorrent::torrent_info const& ti, std::string const& path, bool random = false); + +#endif diff --git a/test/peer_server.hpp b/test/peer_server.hpp index 3e5e28534..707042151 100644 --- a/test/peer_server.hpp +++ b/test/peer_server.hpp @@ -30,13 +30,18 @@ POSSIBILITY OF SUCH DAMAGE. */ +#ifndef PEER_SERVER_HPP +#define PEER_SERVER_HPP + #include "test.hpp" // for EXPORT // returns the port the peer is running on -int EXPORT start_peer(); +EXPORT int start_peer(); // the number of incoming connections to this peer -int EXPORT num_peer_hits(); +EXPORT int num_peer_hits(); -void EXPORT stop_peer(); +EXPORT void stop_peer(); + +#endif diff --git a/test/print_alerts.hpp b/test/print_alerts.hpp index 1c95b7e93..e5ecff382 100644 --- a/test/print_alerts.hpp +++ b/test/print_alerts.hpp @@ -37,7 +37,7 @@ POSSIBILITY OF SUCH DAMAGE. #include "libtorrent/session.hpp" #include "test.hpp" // for EXPORT -void EXPORT print_alerts(libtorrent::session* ses, libtorrent::time_point start_time); +EXPORT void print_alerts(libtorrent::session* ses, libtorrent::time_point start_time); #endif