From d60a5399bf19071c879a2e21a1bf36480dea1977 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Fri, 2 Jan 2009 21:23:43 +0000 Subject: [PATCH] Add *_proxy() methods --- bindings/python/src/session.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bindings/python/src/session.cpp b/bindings/python/src/session.cpp index e37c6a3ea..bcb96eb9a 100644 --- a/bindings/python/src/session.cpp +++ b/bindings/python/src/session.cpp @@ -300,6 +300,7 @@ void bind_session() .def("stop_dht", allow_threads(&session::stop_dht), session_stop_dht_doc) .def("dht_state", allow_threads(&session::dht_state), session_dht_state_doc) .def("set_dht_proxy", allow_threads(&session::set_dht_proxy)) + .def("dht_proxy", allow_threads(&session::dht_proxy), return_value_policy()) #endif .def("add_torrent", &add_torrent, session_add_torrent_doc) #ifndef TORRENT_NO_DEPRECATE @@ -373,6 +374,9 @@ void bind_session() .def("set_peer_proxy", allow_threads(&session::set_peer_proxy)) .def("set_tracker_proxy", allow_threads(&session::set_tracker_proxy)) .def("set_web_seed_proxy", allow_threads(&session::set_web_seed_proxy)) + .def("peer_proxy", allow_threads(&session::peer_proxy), return_value_policy()) + .def("tracker_proxy", allow_threads(&session::tracker_proxy), return_value_policy()) + .def("web_seed_proxy", allow_threads(&session::web_seed_proxy), return_value_policy()) .def("start_upnp", &start_upnp, session_start_upnp_doc) .def("stop_upnp", allow_threads(&session::stop_upnp), session_stop_upnp_doc) .def("start_lsd", allow_threads(&session::start_lsd), session_start_lsd_doc)