From d6743037b3f145f8742036fb4d956bdff8d5f442 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Tue, 1 Jul 2008 21:11:30 +0000 Subject: [PATCH] Add session pause and resume to python bindings --- bindings/python/src/session.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bindings/python/src/session.cpp b/bindings/python/src/session.cpp index 187f4fff5..294d9d534 100644 --- a/bindings/python/src/session.cpp +++ b/bindings/python/src/session.cpp @@ -337,6 +337,9 @@ void bind_session() .def("set_ip_filter", allow_threads(&session::set_ip_filter), session_set_ip_filter_doc) .def("find_torrent", allow_threads(&session::find_torrent)) .def("get_torrents", &get_torrents) + .def("pause", allow_threads(&session::pause)) + .def("resume", allow_threads(&session::resume)) + .def("is_paused", allow_threads(&session::is_paused)) ; register_ptr_to_python >();