Make API CTF-agnostic
[babeltrace.git] / include / babeltrace / ctf-ir / stream-internal.h
index 19cd8c2f8658e92ae80d50577ec2bb6f57c8a99d..0cbd18b561539217621099ac837370d2f625dc74 100644 (file)
@@ -27,8 +27,6 @@
  * SOFTWARE.
  */
 
-#include <babeltrace/assert-pre-internal.h>
-#include <babeltrace/assert-internal.h>
 #include <babeltrace/ctf-ir/stream.h>
 #include <babeltrace/ctf-ir/utils-internal.h>
 #include <babeltrace/object-internal.h>
@@ -41,12 +39,32 @@ struct bt_stream;
 
 struct bt_stream {
        struct bt_object base;
-       int64_t id;
-       struct bt_stream_class *stream_class;
-       GString *name;
+
+       /* Weak: parent is this class's trace */
+       struct bt_stream_class *class;
+
+       struct {
+               GString *str;
+
+               /* NULL or `str->str` above */
+               const char *value;
+       } name;
+
+       uint64_t id;
 
        /* Pool of `struct bt_packet *` */
        struct bt_object_pool packet_pool;
+
+       bool frozen;
 };
 
+BT_HIDDEN
+void _bt_stream_freeze(struct bt_stream *stream);
+
+#ifdef BT_DEV_MODE
+# define bt_stream_freeze              _bt_stream_freeze
+#else
+# define bt_stream_freeze(_stream)
+#endif
+
 #endif /* BABELTRACE_CTF_IR_STREAM_INTERNAL_H */
This page took 0.025559 seconds and 4 git commands to generate.