Docs: A stream has no ownership of its trace
[babeltrace.git] / formats / ctf / ir / stream.c
index 219f6c18f125dac2413994d2c8590bbf7b8c538a..047fc2925e19e3e79af185389f9b9fa22833125a 100644 (file)
@@ -270,6 +270,7 @@ struct bt_ctf_stream *bt_ctf_stream_create(
                goto end;
        }
 
+       /* A stream has no ownership of its trace (weak ptr) */
        stream->trace = trace;
        bt_ctf_ref_init(&stream->ref_count);
        stream->packet_context = bt_ctf_field_create(
@@ -357,13 +358,6 @@ end:
        return ret;
 }
 
-BT_HIDDEN
-void bt_ctf_stream_set_trace(struct bt_ctf_stream *stream,
-               struct bt_ctf_trace *trace)
-{
-       stream->trace = trace;
-}
-
 struct bt_ctf_stream_class *bt_ctf_stream_get_class(
                struct bt_ctf_stream *stream)
 {
This page took 0.027409 seconds and 4 git commands to generate.