BT_ASSERT(notif_iter_data->ds_file);
status = ctf_fs_ds_file_next(notif_iter_data->ds_file, &priv_notif);
- *notif = bt_private_notification_borrow_notification(priv_notif);
+ *notif = bt_private_notification_as_notification(priv_notif);
if (status == BT_SELF_NOTIFICATION_ITERATOR_STATUS_OK &&
bt_notification_get_type(*notif) ==
BT_OBJECT_PUT_REF_AND_RESET(*notif);
status = ctf_fs_ds_file_next(notif_iter_data->ds_file,
&priv_notif);
- *notif = bt_private_notification_borrow_notification(priv_notif);
+ *notif = bt_private_notification_as_notification(priv_notif);
BT_ASSERT(status != BT_SELF_NOTIFICATION_ITERATOR_STATUS_END);
goto end;
} else {
}
status = ctf_fs_ds_file_next(notif_iter_data->ds_file, &priv_notif);
- *notif = bt_private_notification_borrow_notification(priv_notif);
+ *notif = bt_private_notification_as_notification(priv_notif);
/*
* If we get a notification, we expect to get a
BT_OBJECT_PUT_REF_AND_RESET(*notif);
status = ctf_fs_ds_file_next(notif_iter_data->ds_file,
&priv_notif);
- *notif = bt_private_notification_borrow_notification(priv_notif);
+ *notif = bt_private_notification_as_notification(priv_notif);
BT_ASSERT(status != BT_SELF_NOTIFICATION_ITERATOR_STATUS_END);
}
}
int iret;
port_data = bt_self_component_port_get_data(
- bt_self_component_port_output_borrow_self_component_port(
+ bt_self_component_port_output_as_self_component_port(
self_port));
BT_ASSERT(port_data);
notif_iter_data = g_new0(struct ctf_fs_notif_iter_data, 1);
void ctf_fs_finalize(struct bt_self_component_source *component)
{
ctf_fs_destroy(bt_self_component_get_data(
- bt_self_component_source_borrow_self_component(component)));
+ bt_self_component_source_as_self_component(component)));
}
static
if (props.snapshots.beginning_clock != UINT64_C(-1)) {
BT_ASSERT(sc->default_clock_class);
ret = bt_clock_class_cycles_to_ns_from_origin(
- bt_private_clock_class_borrow_clock_class(
+ bt_private_clock_class_as_clock_class(
sc->default_clock_class),
props.snapshots.beginning_clock, &begin_ns);
if (ret) {
}
bt_self_component_set_data(
- bt_self_component_source_borrow_self_component(self_comp),
+ bt_self_component_source_as_self_component(self_comp),
ctf_fs);
/*
ctf_fs_destroy(ctf_fs);
ctf_fs = NULL;
bt_self_component_set_data(
- bt_self_component_source_borrow_self_component(self_comp),
+ bt_self_component_source_as_self_component(self_comp),
NULL);
end: