From b93d3cf7c14d8c67cd928201c9781b43228f0631 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Thu, 3 Jul 2008 23:47:48 +0000 Subject: [PATCH] Add state_changed_alert to python bindings --- bindings/python/src/alert.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bindings/python/src/alert.cpp b/bindings/python/src/alert.cpp index 85a4fae2f..01b73ac61 100644 --- a/bindings/python/src/alert.cpp +++ b/bindings/python/src/alert.cpp @@ -274,5 +274,11 @@ void bind_alert() class_, noncopyable>( "torrent_resumed_alert", no_init - ); + ); + + class_, noncopyable>( + "state_changed_alert", no_init + ) + .def_readonly("state", &state_changed_alert::state) + ; }