lib: add "borrow" functions where "get" functions exist
[babeltrace.git] / lib / ctf-writer / stream.c
index aa6a525c7a1e078187e237522b0143f4d73ece02..ec269e17ff97b0db5d8c3b8dfbdaf4d14447cb0b 100644 (file)
@@ -1939,7 +1939,7 @@ int try_set_structure_field_integer(struct bt_ctf_field *structure, char *name,
 struct bt_ctf_stream_class *bt_ctf_stream_get_class(
                struct bt_ctf_stream *stream)
 {
-       return BT_FROM_COMMON(bt_stream_common_get_class(BT_TO_COMMON(stream)));
+       return bt_get(bt_stream_common_borrow_class(BT_TO_COMMON(stream)));
 }
 
 const char *bt_ctf_stream_get_name(struct bt_ctf_stream *stream)
This page took 0.02425 seconds and 4 git commands to generate.