Avoid a clash of exported symbols, put them into anonymous namespaces.
This commit is contained in:
parent
277917ec6a
commit
b0f06504fb
|
@ -43,6 +43,8 @@ using namespace libtorrent;
|
|||
namespace lt = libtorrent;
|
||||
using boost::tuples::ignore;
|
||||
|
||||
namespace {
|
||||
|
||||
template <class T>
|
||||
boost::shared_ptr<T> clone_ptr(boost::shared_ptr<T> const& ptr)
|
||||
{
|
||||
|
@ -59,6 +61,8 @@ bool on_alert(alert const* a)
|
|||
return false;
|
||||
}
|
||||
|
||||
} // anonymous namespace
|
||||
|
||||
void test_remap_files_gather(storage_mode_t storage_mode = storage_mode_sparse)
|
||||
{
|
||||
// in case the previous run was terminated
|
||||
|
|
|
@ -54,6 +54,8 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
using namespace libtorrent;
|
||||
namespace lt = libtorrent;
|
||||
|
||||
namespace {
|
||||
|
||||
int peer_disconnects = 0;
|
||||
|
||||
bool on_alert(alert const* a)
|
||||
|
@ -80,6 +82,8 @@ static sha1_hash file_hash(std::string const& name)
|
|||
*/
|
||||
static char const* proxy_name[] = {"", "_socks4", "_socks5", "_socks5_pw", "_http", "_http_pw", "_i2p"};
|
||||
|
||||
} // anonymous namespace
|
||||
|
||||
// proxy: 0=none, 1=socks4, 2=socks5, 3=socks5_pw 4=http 5=http_pw
|
||||
void test_transfer(lt::session& ses, boost::shared_ptr<torrent_info> torrent_file
|
||||
, int proxy, int port, char const* protocol, bool url_seed
|
||||
|
|
Loading…
Reference in New Issue