}
BT_PUT(notit->meta.stream_class);
-
- // TODO: get by ID
- notit->meta.stream_class = bt_ctf_trace_get_stream_class(
+ notit->meta.stream_class = bt_ctf_trace_get_stream_class_by_id(
notit->meta.trace, stream_id);
if (!notit->meta.stream_class) {
PERR("Cannot find stream class with ID %" PRIu64 "\n",
{
enum bt_ctf_notif_iter_status status;
- status = set_current_packet_content_sizes(notit);
- if (status != BT_CTF_NOTIF_ITER_STATUS_OK) {
- PERR("Failed to set current packet and content sizes\n");
- goto end;
- }
-
status = set_current_event_class(notit);
if (status != BT_CTF_NOTIF_ITER_STATUS_OK) {
PERR("Failed to set current event class\n");
end:
BT_PUT(tag_field);
BT_PUT(selected_field);
+ BT_PUT(path);
return selected_field_type;
}
goto end;
}
- notit->meta.trace = trace;
- bt_get(notit->meta.trace);
+ notit->meta.trace = bt_get(trace);
notit->medium.medops = medops;
notit->medium.max_request_sz = max_request_sz;
notit->medium.data = data;