uint64_t cycles, int64_t *ns)
{
return bt_clock_class_cycles_to_ns_from_origin(
- bt_clock_class_borrow_from_private(clock_class), cycles, ns);
+ bt_private_clock_class_as_clock_class(clock_class), cycles, ns);
}
static
BT_HIDDEN
struct ctf_fs_ds_file *ctf_fs_ds_file_create(
struct ctf_fs_trace *ctf_fs_trace,
- struct bt_private_connection_private_notification_iterator *pc_notif_iter,
+ struct bt_self_notification_iterator *pc_notif_iter,
struct bt_notif_iter *notif_iter,
struct bt_private_stream *stream, const char *path)
{
goto error;
}
- ds_file->stream = bt_object_get_ref(stream);
+ ds_file->stream = stream;
+ bt_object_get_ref(ds_file->stream);
ds_file->metadata = ctf_fs_trace->metadata;
g_string_assign(ds_file->file->path, path);
ret = ctf_fs_file_open(ds_file->file, "rb");