fix python binding build without deprecated functions

This commit is contained in:
arvidn 2015-06-08 17:56:18 -04:00
parent bf8d9ba5bd
commit 4461ae2ba4
2 changed files with 4 additions and 0 deletions

View File

@ -646,12 +646,14 @@ void bind_session()
arg("settings")
, arg("flags")=lt::session::start_default_features | lt::session::add_default_plugins))
)
#ifndef TORRENT_NO_DEPRECATE
.def(
init<fingerprint, int, boost::uint32_t>((
arg("fingerprint")=fingerprint("LT",0,1,0,0)
, arg("flags")=lt::session::start_default_features | lt::session::add_default_plugins
, arg("alert_mask")=int(alert::error_notification)))
)
#endif
.def("post_torrent_updates", allow_threads(&lt::session::post_torrent_updates))
.def("outgoing_ports", &outgoing_ports)
.def("is_listening", allow_threads(&lt::session::is_listening))

View File

@ -83,7 +83,9 @@ void bind_utility()
to_python_converter<bytes, bytes_to_python>();
bytes_from_python();
#ifndef TORRENT_NO_DEPRECATE
def("identify_client", &libtorrent::identify_client);
#endif
def("client_fingerprint", &client_fingerprint_);
def("bdecode", &bdecode_);
def("bencode", &bencode_);