X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fcomponent.py;h=142cd26933c333e9104dbefc2eb4d3b01e1dbf4e;hb=5813b3a3ffb8ff44d54b134e26d604af0b5e36db;hp=acc5b22c7b71e931a451cf6cc86629770ed8739b;hpb=c7e5224bd55c9b9864f7e3a4e8d1a3df276ebc2b;p=babeltrace.git diff --git a/src/bindings/python/bt2/bt2/component.py b/src/bindings/python/bt2/bt2/component.py index acc5b22c..142cd269 100644 --- a/src/bindings/python/bt2/bt2/component.py +++ b/src/bindings/python/bt2/bt2/component.py @@ -247,7 +247,7 @@ class _GenericSourceComponent(object._SharedObject, _SourceComponent): native_bt.component_source_borrow_output_port_by_name_const, native_bt.component_source_borrow_output_port_by_index_const, native_bt.component_source_get_output_port_count, - bt2_port._OutputPort, + bt2_port._OutputPortConst, ) @@ -264,7 +264,7 @@ class _GenericFilterComponent(object._SharedObject, _FilterComponent): native_bt.component_filter_borrow_output_port_by_name_const, native_bt.component_filter_borrow_output_port_by_index_const, native_bt.component_filter_get_output_port_count, - bt2_port._OutputPort, + bt2_port._OutputPortConst, ) @property @@ -274,7 +274,7 @@ class _GenericFilterComponent(object._SharedObject, _FilterComponent): native_bt.component_filter_borrow_input_port_by_name_const, native_bt.component_filter_borrow_input_port_by_index_const, native_bt.component_filter_get_input_port_count, - bt2_port._InputPort, + bt2_port._InputPortConst, ) @@ -291,7 +291,7 @@ class _GenericSinkComponent(object._SharedObject, _SinkComponent): native_bt.component_sink_borrow_input_port_by_name_const, native_bt.component_sink_borrow_input_port_by_index_const, native_bt.component_sink_get_input_port_count, - bt2_port._InputPort, + bt2_port._InputPortConst, ) @@ -701,7 +701,7 @@ class _UserComponent(metaclass=_UserComponentType): else: other_port_type = native_bt.PORT_TYPE_OUTPUT - other_port = bt2_port._create_from_ptr_and_get_ref( + other_port = bt2_port._create_from_const_ptr_and_get_ref( other_port_ptr, other_port_type ) self._user_port_connected(port, other_port)