exposed comparison operators on torrent_handle to python

This commit is contained in:
Arvid Norberg 2011-07-04 21:02:15 +00:00
parent d0d6d535ce
commit 220793c369
2 changed files with 4 additions and 0 deletions

View File

@ -87,6 +87,7 @@
incoming connection
* added more detailed instrumentation of the disk I/O thread
* exposed comparison operators on torrent_handle to python
* exposed alert error_codes to python
* fixed bug in announce_entry::next_announce_in and min_announce_in
* fixed sign issue in set_alert_mask signature

View File

@ -284,6 +284,9 @@ void bind_torrent_handle()
#define _ allow_threads
class_<torrent_handle>("torrent_handle")
.def(self == self)
.def(self != self)
.def(self < self)
.def("get_peer_info", get_peer_info)
.def("status", _(&torrent_handle::status), arg("flags") = 0xffffffff)
.def("get_download_queue", get_download_queue)