-def _graph_ports_connected_listener_from_native(user_listener,
- upstream_component_ptr, upstream_component_type,
- upstream_port_ptr,
- downstream_component_ptr, downstream_component_type,
- downstream_port_ptr):
- upstream_component = bt2.component._create_component_from_ptr_and_get_ref(
- upstream_component_ptr, upstream_component_type)
- upstream_port = bt2.port._create_from_ptr_and_get_ref(
- upstream_port_ptr, native_bt.PORT_TYPE_OUTPUT)
- downstream_component = bt2.component._create_component_from_ptr_and_get_ref(
- downstream_component_ptr, downstream_component_type)
- downstream_port = bt2.port._create_from_ptr_and_get_ref(
- downstream_port_ptr, native_bt.PORT_TYPE_INPUT)
- user_listener(upstream_component, upstream_port, downstream_component, downstream_port)
-
-