ir: add trace accessor to bt_ctf_stream_class
[babeltrace.git] / formats / ctf / ir / stream-class.c
index 22ea8a5db6628d819153026dd8201b98487d345d..572d7424e658a0c6532f7734a69982b36b0dd9ab 100644 (file)
@@ -87,6 +87,23 @@ error:
        return stream_class;
 }
 
+struct bt_ctf_trace *bt_ctf_stream_class_get_trace(
+               struct bt_ctf_stream_class *stream_class)
+{
+       struct bt_ctf_trace *trace = NULL;
+
+       if (!stream_class) {
+               goto end;
+       }
+
+       trace = stream_class->trace;
+       if (trace) {
+               bt_ctf_trace_get(trace);
+       }
+end:
+       return trace;
+}
+
 const char *bt_ctf_stream_class_get_name(
                struct bt_ctf_stream_class *stream_class)
 {
This page took 0.023586 seconds and 4 git commands to generate.