add 'block_uploaded_alert' to python bindings
This commit is contained in:
parent
8508506f16
commit
fe2f7b1478
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue