Add trace accessor to CTF Writer
[babeltrace.git] / formats / ctf / writer / writer.c
index 7b876617a4bc29dd65605fac43dca8b9020c50f2..ed896ca47fdeb91c4004bc96072215a6db8b9059 100644 (file)
@@ -131,6 +131,20 @@ void bt_ctf_writer_destroy(struct bt_ctf_ref *ref)
        g_free(writer);
 }
 
+struct bt_ctf_trace *bt_ctf_writer_get_trace(struct bt_ctf_writer *writer)
+{
+       struct bt_ctf_trace *trace = NULL;
+
+       if (!writer) {
+               goto end;
+       }
+
+       trace = writer->trace;
+       bt_ctf_trace_get(trace);
+end:
+       return trace;
+}
+
 struct bt_ctf_stream *bt_ctf_writer_create_stream(struct bt_ctf_writer *writer,
                struct bt_ctf_stream_class *stream_class)
 {
This page took 0.023658 seconds and 4 git commands to generate.