+ enum bt_notification_iterator_status ret;
+ struct bt_notification *notification = NULL;
+ struct ctf_fs_component *ctf_fs;
+ struct bt_component *component = bt_notification_iterator_get_component(
+ iterator);
+
+ if (!component) {
+ ret = BT_NOTIFICATION_ITERATOR_STATUS_ERROR;
+ goto end;
+ }
+
+ ctf_fs = bt_component_get_private_data(component);
+ assert(ctf_fs);
+
+ ret = ctf_fs_data_stream_get_next_notification(ctf_fs, ¬ification);
+ if (ret || !notification) {
+ goto end;
+ }
+
+ bt_put(ctf_fs->current_notification);
+ ctf_fs->current_notification = notification;
+end:
+ return BT_NOTIFICATION_ITERATOR_STATUS_OK;