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;
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;
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;
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,
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(
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);
}
}
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);
}
}
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(
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);
}
}
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);
}
}
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);
}
}
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);
}
}