Always evaluate BT_ASSERT(); add BT_ASSERT_DBG() for debug mode only
[babeltrace.git] / src / lib / trace-ir / stream.h
index 96985a93ffcc630bcbaeb7e062dad2dc58f97238..e0660efd7861e2df3f2e068a6501c1e9944d14f2 100644 (file)
@@ -27,7 +27,7 @@
 #include <babeltrace2/trace-ir/stream.h>
 #include "lib/object.h"
 #include "lib/object-pool.h"
-#include "common/babeltrace.h"
+#include "common/macros.h"
 #include <glib.h>
 
 #include "utils.h"
@@ -38,6 +38,9 @@ struct bt_stream;
 struct bt_stream {
        struct bt_object base;
 
+       /* Owned by this */
+       struct bt_value *user_attributes;
+
        /* Owned by this */
        struct bt_stream_class *class;
 
@@ -68,7 +71,7 @@ void _bt_stream_freeze(const struct bt_stream *stream);
 static inline
 struct bt_trace *bt_stream_borrow_trace_inline(const struct bt_stream *stream)
 {
-       BT_ASSERT(stream);
+       BT_ASSERT_DBG(stream);
        return (void *) bt_object_borrow_parent(&stream->base);
 }
 
This page took 0.024197 seconds and 4 git commands to generate.