lib: make public reference count functions have strict types
[babeltrace.git] / plugins / ctf / fs-src / query.c
index 6f2017b20688147e52806b96727bc9d011a4026a..7b2228662a9b3fc74f877b3ff8834516a9d54806 100644 (file)
@@ -158,7 +158,7 @@ enum bt_query_status metadata_info_query(
        goto end;
 
 error:
-       BT_OBJECT_PUT_REF_AND_RESET(result);
+       BT_VALUE_PUT_REF_AND_RESET(result);
        result = NULL;
 
        if (status >= 0) {
@@ -221,7 +221,7 @@ int add_range(struct bt_value *info, struct range *range,
        }
 
 end:
-       bt_object_put_ref(range_map);
+       bt_value_put_ref(range_map);
        return ret;
 }
 
@@ -336,7 +336,7 @@ int populate_stream_info(struct ctf_fs_ds_file_group *group,
                goto end;
        }
 end:
-       bt_object_put_ref(file_paths);
+       bt_value_put_ref(file_paths);
        return ret;
 }
 
@@ -408,7 +408,7 @@ int populate_trace_info(const char *trace_path, const char *trace_name,
 
                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;
                }
 
@@ -427,7 +427,7 @@ int populate_trace_info(const char *trace_path, const char *trace_name,
                        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;
                        }
@@ -449,14 +449,14 @@ int populate_trace_info(const char *trace_path, const char *trace_name,
 
        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;
 }
@@ -532,12 +532,12 @@ enum bt_query_status trace_info_query(
                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;
                }
@@ -546,7 +546,7 @@ enum bt_query_status trace_info_query(
        goto end;
 
 error:
-       BT_OBJECT_PUT_REF_AND_RESET(result);
+       BT_VALUE_PUT_REF_AND_RESET(result);
        result = NULL;
 
        if (status >= 0) {
This page took 0.025626 seconds and 4 git commands to generate.