Split CTF IR and CTF writer APIs and implementations
[babeltrace.git] / lib / graph / notification / stream.c
index af6156333141a4f5a13e125c517f721217db3a56..84ee483a900361dd00cd1f552b091308ce8e1855 100644 (file)
@@ -55,9 +55,7 @@ struct bt_notification *bt_notification_stream_end_create(
        struct bt_stream_class *stream_class;
 
        BT_ASSERT_PRE_NON_NULL(stream, "Stream");
-       BT_ASSERT_PRE(stream->pos.fd < 0,
-               "Stream is a CTF writer stream: %!+s", stream);
-       stream_class = bt_stream_borrow_stream_class(stream);
+       stream_class = bt_stream_borrow_class(stream);
        BT_ASSERT(stream_class);
        BT_LOGD("Creating stream end notification object: "
                "stream-addr=%p, stream-name=\"%s\", "
@@ -123,9 +121,7 @@ struct bt_notification *bt_notification_stream_begin_create(
        struct bt_stream_class *stream_class;
 
        BT_ASSERT_PRE_NON_NULL(stream, "Stream");
-       BT_ASSERT_PRE(stream->pos.fd < 0,
-               "Stream is a CTF writer stream: %!+s", stream);
-       stream_class = bt_stream_borrow_stream_class(stream);
+       stream_class = bt_stream_borrow_class(stream);
        BT_ASSERT(stream_class);
        BT_LOGD("Creating stream beginning notification object: "
                "stream-addr=%p, stream-name=\"%s\", "
This page took 0.023705 seconds and 4 git commands to generate.