expose post_torrent_updates and state_update_alert to python bindings

This commit is contained in:
Arvid Norberg
2012-08-10 06:33:53 +00:00
parent 9a11c44984
commit 670437c375
4 changed files with 20 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ object verified_pieces(torrent_status const& s) { return bitfield_to_list(s.veri
void bind_torrent_status()
{
scope status = class_<torrent_status>("torrent_status")
.def_readonly("info_hash", &torrent_status::info_hash)
.def_readonly("state", &torrent_status::state)
.def_readonly("paused", &torrent_status::paused)
.def_readonly("auto_managed", &torrent_status::auto_managed)