Rename: bt_put(), bt_get() -> bt_object_put_ref(), bt_object_get_ref()
[babeltrace.git] / include / babeltrace / ctf-writer / stream-class-internal.h
index 91a60b4e822281a96cf9efb022f3171c72d4a1f3..f1a90e1f96beab7886c45d5bf8e3315c254ee2b7 100644 (file)
@@ -359,8 +359,8 @@ int bt_ctf_stream_class_common_set_packet_context_field_type(
                goto end;
        }
 
-       bt_put(stream_class->packet_context_field_type);
-       bt_get(packet_context_type);
+       bt_object_put_ref(stream_class->packet_context_field_type);
+       bt_object_get_ref(packet_context_type);
        stream_class->packet_context_field_type = packet_context_type;
        BT_LOGV("Set stream class's packet context field type: "
                "addr=%p, name=\"%s\", id=%" PRId64 ", "
@@ -436,8 +436,8 @@ int bt_ctf_stream_class_common_set_event_header_field_type(
                goto end;
        }
 
-       bt_put(stream_class->event_header_field_type);
-       stream_class->event_header_field_type = bt_get(event_header_type);
+       bt_object_put_ref(stream_class->event_header_field_type);
+       stream_class->event_header_field_type = bt_object_get_ref(event_header_type);
        BT_LOGV("Set stream class's event header field type: "
                "addr=%p, name=\"%s\", id=%" PRId64 ", "
                "event-header-ft-addr=%p",
@@ -505,8 +505,8 @@ int bt_ctf_stream_class_common_set_event_context_field_type(
                goto end;
        }
 
-       bt_put(stream_class->event_context_field_type);
-       stream_class->event_context_field_type = bt_get(event_context_type);
+       bt_object_put_ref(stream_class->event_context_field_type);
+       stream_class->event_context_field_type = bt_object_get_ref(event_context_type);
        BT_LOGV("Set stream class's event context field type: "
                "addr=%p, name=\"%s\", id=%" PRId64 ", "
                "event-context-ft-addr=%p",
This page took 0.024319 seconds and 4 git commands to generate.