lib: add "borrow" functions where "get" functions exist
[babeltrace.git] / lib / ctf-ir / event-class.c
index 7780095bf95b2a1715ce2933b34355a1fbdd32a2..79cd123eac2362c490382551ffc35be07cdab81b 100644 (file)
@@ -198,17 +198,19 @@ int bt_event_class_set_emf_uri(struct bt_event_class *event_class,
                emf_uri);
 }
 
-struct bt_stream_class *bt_event_class_get_stream_class(
+struct bt_stream_class *bt_event_class_borrow_stream_class(
                struct bt_event_class *event_class)
 {
        BT_ASSERT_PRE_NON_NULL(event_class, "Event class");
-       return bt_get(bt_event_class_borrow_stream_class(event_class));
+       return BT_FROM_COMMON(
+               bt_event_class_common_borrow_stream_class(BT_TO_COMMON(
+                       event_class)));
 }
 
-struct bt_field_type *bt_event_class_get_payload_field_type(
+struct bt_field_type *bt_event_class_borrow_payload_field_type(
                struct bt_event_class *event_class)
 {
-       return BT_FROM_COMMON(bt_event_class_common_get_payload_field_type(
+       return BT_FROM_COMMON(bt_event_class_common_borrow_payload_field_type(
                BT_TO_COMMON(event_class)));
 }
 
@@ -219,10 +221,10 @@ int bt_event_class_set_payload_field_type(struct bt_event_class *event_class,
                BT_TO_COMMON(event_class), (void *) field_type);
 }
 
-struct bt_field_type *bt_event_class_get_context_field_type(
+struct bt_field_type *bt_event_class_borrow_context_field_type(
                struct bt_event_class *event_class)
 {
-       return BT_FROM_COMMON(bt_event_class_common_get_context_field_type(
+       return BT_FROM_COMMON(bt_event_class_common_borrow_context_field_type(
                BT_TO_COMMON(event_class)));
 }
 
This page took 0.02375 seconds and 4 git commands to generate.