forked from premiere/premiere-libtorrent
Add session pause and resume to python bindings
This commit is contained in:
parent
94cbac20cd
commit
d6743037b3
|
@ -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> >();
|
||||
|
|
Loading…
Reference in New Issue