lib: remove useless checks, make functions inline on fast path
[babeltrace.git] / lib / ctf-writer / event.c
index 447571c4d67bb88d4f0db9712f0d39a5a42654c7..b2a7f23206622dc3a591a15528e2118c147bf558 100644 (file)
@@ -128,7 +128,7 @@ struct bt_ctf_event *bt_ctf_event_create(struct bt_ctf_event_class *event_class)
 
        ret = bt_event_common_initialize(BT_TO_COMMON(event),
                BT_TO_COMMON(event_class), expected_clock_class,
-               bt_ctf_event_destroy,
+               true, bt_ctf_event_destroy,
                (bt_validation_flag_copy_field_type_func)
                        bt_ctf_field_type_copy,
                false, map_clock_classes_func,
@@ -161,7 +161,7 @@ struct bt_ctf_stream *bt_ctf_event_borrow_stream(struct bt_ctf_event *event)
 {
        BT_ASSERT(event);
        return (struct bt_ctf_stream *)
-               bt_object_borrow_parent(BT_TO_COMMON(event));
+               bt_object_borrow_parent(&BT_TO_COMMON(event)->base);
 }
 
 struct bt_ctf_stream *bt_ctf_event_get_stream(struct bt_ctf_event *event)
@@ -287,7 +287,7 @@ end:
 BT_HIDDEN
 void _bt_ctf_event_freeze(struct bt_ctf_event *event)
 {
-       _bt_event_common_freeze(BT_TO_COMMON(event));
+       _bt_event_common_set_is_frozen(BT_TO_COMMON(event), true);
 }
 
 int bt_ctf_event_set_header(struct bt_ctf_event *event,
This page took 0.025715 seconds and 4 git commands to generate.