- struct bt_notification_iterator *iterator;
- struct bt_private_connection *connection;
- enum bt_connection_status conn_status;
-
- dummy = bt_private_component_get_user_data(component);
- assert(dummy);
- connection = bt_private_port_get_private_connection(self_port);
- assert(connection);
- conn_status = bt_private_connection_create_notification_iterator(
- connection, NULL, &iterator);
- if (conn_status != BT_CONNECTION_STATUS_OK) {
- dummy->error = true;
+ bt_self_component_port_input_notification_iterator *iterator;
+
+ dummy = bt_self_component_get_data(
+ bt_self_component_sink_as_self_component(comp));
+ BT_ASSERT(dummy);
+ iterator = bt_self_component_port_input_notification_iterator_create(
+ self_port);
+ if (!iterator) {
+ status = BT_SELF_COMPONENT_STATUS_NOMEM;