};
static
-void stream_destroy_listener(struct bt_stream *stream, void *data)
+void stream_destroy_listener(struct bt_stream_common *stream, void *data)
{
struct bt_notification_iterator_private_connection *iterator = data;
BT_ASSERT(stream_gptr);
BT_LOGD_STR("Removing stream's destroy listener for notification iterator.");
- bt_stream_remove_destroy_listener(
+ bt_stream_common_remove_destroy_listener(
(void *) stream_gptr, stream_destroy_listener,
iterator);
}
return BT_NOTIFICATION_ITERATOR_STATUS_OK;
}
-struct bt_notification *bt_notification_iterator_get_notification(
+struct bt_notification *bt_notification_iterator_borrow_notification(
struct bt_notification_iterator *iterator)
{
BT_ASSERT_PRE_NON_NULL(iterator, "Notification iterator");
- return bt_get(
- bt_notification_iterator_borrow_current_notification(iterator));
+ return bt_notification_iterator_borrow_current_notification(iterator);
}
BT_ASSERT_PRE_FUNC