Add session pause and resume to python bindings

This commit is contained in:
Andrew Resch 2008-07-01 21:11:30 +00:00
parent 94cbac20cd
commit d6743037b3
1 changed files with 3 additions and 0 deletions

View File

@ -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<std::auto_ptr<alert> >();