- connection = bt_private_port_get_private_connection(self_port);
- BT_ASSERT(connection);
- conn_status = bt_private_connection_create_notification_iterator(
- connection, &iterator);
- if (conn_status != BT_CONNECTION_STATUS_OK) {
- status = BT_COMPONENT_STATUS_ERROR;
+ iterator = bt_self_component_port_input_message_iterator_create(
+ bt_self_component_sink_borrow_input_port_by_name(comp,
+ in_port_name));
+ if (!iterator) {
+ status = BT_SELF_COMPONENT_STATUS_NOMEM;