ir: add stream accessor to bt_ctf_event
[babeltrace.git] / formats / ctf / ir / event.c
index 6fbfb4467a3420a92964c98f9542b494191ab132..ccf822a70d358c7f2e610014d40deecd265dcb9e 100644 (file)
@@ -616,6 +616,22 @@ end:
        return event_class;
 }
 
+struct bt_ctf_stream *bt_ctf_event_get_stream(struct bt_ctf_event *event)
+{
+       struct bt_ctf_stream *stream = NULL;
+
+       if (!event) {
+               goto end;
+       }
+
+       stream = event->stream;
+       if (stream) {
+               bt_ctf_stream_get(stream);
+       }
+end:
+       return stream;
+}
+
 struct bt_ctf_clock *bt_ctf_event_get_clock(struct bt_ctf_event *event)
 {
        struct bt_ctf_clock *clock = NULL;
This page took 0.023682 seconds and 4 git commands to generate.