lib: make public reference count functions have strict types
[babeltrace.git] / plugins / ctf / common / metadata / ctf-meta-translate.c
index ddd24f4fc23082fbcf682a1717b53c723119a87b..4b5e219a8584a9cee4d7e1d5206d843aa6b6429c 100644 (file)
@@ -151,7 +151,7 @@ struct bt_field_class *ctf_field_class_struct_to_ir(
                ret = bt_field_class_structure_append_member(
                        ir_fc, named_fc->name->str, member_ir_fc);
                BT_ASSERT(ret == 0);
-               bt_object_put_ref(member_ir_fc);
+               bt_field_class_put_ref(member_ir_fc);
        }
 
        return ir_fc;
@@ -205,7 +205,7 @@ struct bt_field_class *ctf_field_class_variant_to_ir(
                ret = bt_field_class_variant_append_option(
                        ir_fc, named_fc->name->str, option_ir_fc);
                BT_ASSERT(ret == 0);
-               bt_object_put_ref(option_ir_fc);
+               bt_field_class_put_ref(option_ir_fc);
        }
 
        return ir_fc;
@@ -232,7 +232,7 @@ struct bt_field_class *ctf_field_class_array_to_ir(
        ir_fc = bt_field_class_static_array_create(elem_ir_fc,
                fc->length);
        BT_ASSERT(ir_fc);
-       bt_object_put_ref(elem_ir_fc);
+       bt_field_class_put_ref(elem_ir_fc);
 
 end:
        return ir_fc;
@@ -259,7 +259,7 @@ struct bt_field_class *ctf_field_class_sequence_to_ir(
        BT_ASSERT(elem_ir_fc);
        ir_fc = bt_field_class_dynamic_array_create(elem_ir_fc);
        BT_ASSERT(ir_fc);
-       bt_object_put_ref(elem_ir_fc);
+       bt_field_class_put_ref(elem_ir_fc);
        BT_ASSERT(ir_fc);
        ret = bt_field_class_dynamic_array_set_length_field_class(
                ir_fc,
@@ -407,7 +407,7 @@ struct bt_event_class *ctf_event_class_to_ir(struct ctf_event_class *ec,
 
        ir_ec = bt_event_class_create_with_id(ir_sc, ec->id);
        BT_ASSERT(ir_ec);
-       bt_object_put_ref(ir_ec);
+       bt_event_class_put_ref(ir_ec);
 
        if (ec->spec_context_fc) {
                struct bt_field_class *ir_fc = scope_ctf_field_class_to_ir(
@@ -417,7 +417,7 @@ struct bt_event_class *ctf_event_class_to_ir(struct ctf_event_class *ec,
                        ret = bt_event_class_set_specific_context_field_class(
                                ir_ec, ir_fc);
                        BT_ASSERT(ret == 0);
-                       bt_object_put_ref(ir_fc);
+                       bt_field_class_put_ref(ir_fc);
                }
        }
 
@@ -429,7 +429,7 @@ struct bt_event_class *ctf_event_class_to_ir(struct ctf_event_class *ec,
                        ret = bt_event_class_set_payload_field_class(ir_ec,
                                ir_fc);
                        BT_ASSERT(ret == 0);
-                       bt_object_put_ref(ir_fc);
+                       bt_field_class_put_ref(ir_fc);
                }
        }
 
@@ -471,7 +471,7 @@ struct bt_stream_class *ctf_stream_class_to_ir(struct ctf_stream_class *sc,
 
        ir_sc = bt_stream_class_create_with_id(ir_tc, sc->id);
        BT_ASSERT(ir_sc);
-       bt_object_put_ref(ir_sc);
+       bt_stream_class_put_ref(ir_sc);
 
        if (sc->packet_context_fc) {
                struct bt_field_class *ir_fc = scope_ctf_field_class_to_ir(
@@ -481,7 +481,7 @@ struct bt_stream_class *ctf_stream_class_to_ir(struct ctf_stream_class *sc,
                        ret = bt_stream_class_set_packet_context_field_class(
                                ir_sc, ir_fc);
                        BT_ASSERT(ret == 0);
-                       bt_object_put_ref(ir_fc);
+                       bt_field_class_put_ref(ir_fc);
                }
        }
 
@@ -493,7 +493,7 @@ struct bt_stream_class *ctf_stream_class_to_ir(struct ctf_stream_class *sc,
                        ret = bt_stream_class_set_event_header_field_class(
                                ir_sc, ir_fc);
                        BT_ASSERT(ret == 0);
-                       bt_object_put_ref(ir_fc);
+                       bt_field_class_put_ref(ir_fc);
                }
        }
 
@@ -505,7 +505,7 @@ struct bt_stream_class *ctf_stream_class_to_ir(struct ctf_stream_class *sc,
                        ret = bt_stream_class_set_event_common_context_field_class(
                                ir_sc, ir_fc);
                        BT_ASSERT(ret == 0);
-                       bt_object_put_ref(ir_fc);
+                       bt_field_class_put_ref(ir_fc);
                }
        }
 
@@ -581,7 +581,7 @@ int ctf_trace_class_to_ir(struct bt_trace_class *ir_tc,
                        ret = bt_trace_class_set_packet_header_field_class(
                                ir_tc, ir_fc);
                        BT_ASSERT(ret == 0);
-                       bt_object_put_ref(ir_fc);
+                       bt_field_class_put_ref(ir_fc);
                }
        }
 
This page took 0.024828 seconds and 4 git commands to generate.