goto end;
error:
- BT_OBJECT_PUT_REF_AND_RESET(result);
+ BT_VALUE_PUT_REF_AND_RESET(result);
result = NULL;
if (status >= 0) {
}
end:
- bt_object_put_ref(range_map);
+ bt_value_put_ref(range_map);
return ret;
}
goto end;
}
end:
- bt_object_put_ref(file_paths);
+ bt_value_put_ref(file_paths);
return ret;
}
ret = populate_stream_info(group, group_info, &group_range);
if (ret) {
- bt_object_put_ref(group_info);
+ bt_value_put_ref(group_info);
goto end;
}
status = bt_value_array_append_element(
file_groups,
group_info);
- bt_object_put_ref(group_info);
+ bt_value_put_ref(group_info);
if (status != BT_VALUE_STATUS_OK) {
goto end;
}
status = bt_value_map_insert_entry(trace_info, "streams",
file_groups);
- BT_OBJECT_PUT_REF_AND_RESET(file_groups);
+ BT_VALUE_PUT_REF_AND_RESET(file_groups);
if (status != BT_VALUE_STATUS_OK) {
ret = -1;
goto end;
}
end:
- bt_object_put_ref(file_groups);
+ bt_value_put_ref(file_groups);
ctf_fs_trace_destroy(trace);
return ret;
}
ret = populate_trace_info(trace_path->str, trace_name->str,
trace_info);
if (ret) {
- bt_object_put_ref(trace_info);
+ bt_value_put_ref(trace_info);
goto error;
}
status = bt_value_array_append_element(result, trace_info);
- bt_object_put_ref(trace_info);
+ bt_value_put_ref(trace_info);
if (status != BT_VALUE_STATUS_OK) {
goto error;
}
goto end;
error:
- BT_OBJECT_PUT_REF_AND_RESET(result);
+ BT_VALUE_PUT_REF_AND_RESET(result);
result = NULL;
if (status >= 0) {