X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fconnection.py;h=aac76dd3dd1a9eb4f9dfc364b8d07bf8d70f4d56;hb=5813b3a3ffb8ff44d54b134e26d604af0b5e36db;hp=cb69ef5af79e5d68d52c7df88e6e3f9a9339ca46;hpb=c7e5224bd55c9b9864f7e3a4e8d1a3df276ebc2b;p=babeltrace.git diff --git a/src/bindings/python/bt2/bt2/connection.py b/src/bindings/python/bt2/bt2/connection.py index cb69ef5a..aac76dd3 100644 --- a/src/bindings/python/bt2/bt2/connection.py +++ b/src/bindings/python/bt2/bt2/connection.py @@ -32,13 +32,13 @@ class _ConnectionConst(bt2_object._SharedObject): @property def downstream_port(self): port_ptr = native_bt.connection_borrow_downstream_port_const(self._ptr) - return bt2_port._create_from_ptr_and_get_ref( + return bt2_port._create_from_const_ptr_and_get_ref( port_ptr, native_bt.PORT_TYPE_INPUT ) @property def upstream_port(self): port_ptr = native_bt.connection_borrow_upstream_port_const(self._ptr) - return bt2_port._create_from_ptr_and_get_ref( + return bt2_port._create_from_const_ptr_and_get_ref( port_ptr, native_bt.PORT_TYPE_OUTPUT )