From 3f922c13de7fea3afd91586d630bdc66444d70e3 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 30 Jun 2010 07:39:28 +0000 Subject: [PATCH] fixed python binding build --- bindings/python/src/alert.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/bindings/python/src/alert.cpp b/bindings/python/src/alert.cpp index 45e397419..17c7a5d9f 100644 --- a/bindings/python/src/alert.cpp +++ b/bindings/python/src/alert.cpp @@ -198,8 +198,9 @@ void bind_alert() class_, noncopyable>( "portmap_error_alert", no_init) .def_readonly("mapping", &portmap_error_alert::mapping) - .def_readonly("type", &portmap_error_alert::type) + .def_readonly("map_type", &portmap_error_alert::map_type) #ifndef TORRENT_NO_DEPRECATE + .def_readonly("type", &portmap_error_alert::map_type) .def_readonly("msg", &portmap_error_alert::msg) #endif ; @@ -208,13 +209,17 @@ void bind_alert() "portmap_alert", no_init) .def_readonly("mapping", &portmap_alert::mapping) .def_readonly("external_port", &portmap_alert::external_port) - .def_readonly("type", &portmap_alert::type) +#ifndef TORRENT_NO_DEPRECATE + .def_readonly("type", &portmap_alert::map_type) +#endif + .def_readonly("map_type", &portmap_alert::map_type) ; class_, noncopyable>( "portmap_log_alert", no_init) - .def_readonly("type", &portmap_log_alert::type) + .def_readonly("map_type", &portmap_log_alert::map_type) #ifndef TORRENT_NO_DEPRECATE + .def_readonly("type", &portmap_log_alert::map_type) .def_readonly("msg", &portmap_log_alert::msg) #endif ;