add 'block_uploaded_alert' to python bindings

This commit is contained in:
Joris Carrier 2019-04-06 18:19:11 +02:00 committed by Arvid Norberg
parent 8508506f16
commit fe2f7b1478
1 changed files with 7 additions and 0 deletions

View File

@ -226,6 +226,7 @@ namespace boost
POLY(dht_put_alert)
POLY(session_stats_alert)
POLY(dht_get_peers_reply_alert)
POLY(block_uploaded_alert)
#if TORRENT_ABI_VERSION == 1
POLY(anonymous_mode_alert)
@ -985,6 +986,12 @@ void bind_alert()
.def("peers", peers)
;
class_<block_uploaded_alert, bases<peer_alert>, noncopyable>(
"block_uploaded_alert", no_init)
.add_property("block_index", &block_uploaded_alert::block_index)
.add_property("piece_index", &block_uploaded_alert::piece_index)
;
}
#ifdef _MSC_VER