X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf-ir%2Fstream-internal.h;h=0cbd18b561539217621099ac837370d2f625dc74;hp=19cd8c2f8658e92ae80d50577ec2bb6f57c8a99d;hb=44c440bc5fe8219cc17d1b786d91fd83c4c9860a;hpb=c800eb3790218d2f33df01e77ec38cbd43cc02a1 diff --git a/include/babeltrace/ctf-ir/stream-internal.h b/include/babeltrace/ctf-ir/stream-internal.h index 19cd8c2f..0cbd18b5 100644 --- a/include/babeltrace/ctf-ir/stream-internal.h +++ b/include/babeltrace/ctf-ir/stream-internal.h @@ -27,8 +27,6 @@ * SOFTWARE. */ -#include -#include #include #include #include @@ -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 */