forked from premiere/premiere-libtorrent
fix missing EXPORT annotation of functions in the test utility library (#631)
This commit is contained in:
parent
423ee1cef4
commit
2bd8622f4b
|
@ -30,10 +30,14 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
|
||||
*/
|
||||
|
||||
#ifndef MAKE_TORRENT_HPP
|
||||
#define MAKE_TORRENT_HPP
|
||||
|
||||
#include "libtorrent/torrent_info.hpp"
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include "test.hpp"
|
||||
|
||||
enum flags_t
|
||||
{
|
||||
|
@ -56,7 +60,10 @@ struct torrent_args
|
|||
std::string m_http_seed;
|
||||
};
|
||||
|
||||
boost::shared_ptr<libtorrent::torrent_info> make_test_torrent(torrent_args const& args);
|
||||
EXPORT boost::shared_ptr<libtorrent::torrent_info>
|
||||
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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue