ref.h: doc: fix typo
[babeltrace.git] / lib / plugin-system / notification / notification.c
index 50aca6f7749f956ee96863c527d1dd9f4fdba9ea..139caed0b85f7d6eb966a23992c64c668091fffd 100644 (file)
@@ -42,3 +42,17 @@ enum bt_notification_type bt_notification_get_type(
 {
        return notification ? notification->type : BT_NOTIFICATION_TYPE_UNKNOWN;
 }
+
+struct bt_ctf_stream *bt_notification_get_stream(
+               struct bt_notification *notification)
+{
+       struct bt_ctf_stream *stream = NULL;
+
+       if (!notification || !notification->get_stream) {
+               goto end;
+       }
+
+       stream = notification->get_stream(notification);
+end:
+       return stream;
+}
This page took 0.023978 seconds and 4 git commands to generate.