X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf-ir%2Fstream-class-internal.h;h=3b368d1de2230bb26619b7a8763f09a052319af2;hb=d3814b5400bc383ee8645cd76017e2aa6fea5dfe;hp=8301fea019cdd7353c0421afe95102552c583eda;hpb=123fbdeca6a37f9de585488caf67f9d70eeb5e8a;p=babeltrace.git diff --git a/include/babeltrace/ctf-ir/stream-class-internal.h b/include/babeltrace/ctf-ir/stream-class-internal.h index 8301fea0..3b368d1d 100644 --- a/include/babeltrace/ctf-ir/stream-class-internal.h +++ b/include/babeltrace/ctf-ir/stream-class-internal.h @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include @@ -44,6 +45,8 @@ struct bt_ctf_stream_class { uint32_t id; uint32_t next_event_id; uint32_t next_stream_id; + /* Weak reference; a stream class does not have ownership of a trace */ + struct bt_ctf_trace *trace; struct bt_ctf_field_type *packet_context_type; struct bt_ctf_field_type *event_header_type; struct bt_ctf_field_type *event_context_type; @@ -67,4 +70,8 @@ BT_HIDDEN int _bt_ctf_stream_class_set_id(struct bt_ctf_stream_class *stream_class, uint32_t id); +BT_HIDDEN +int bt_ctf_stream_class_set_trace(struct bt_ctf_stream_class *stream_class, + struct bt_ctf_trace *trace); + #endif /* BABELTRACE_CTF_IR_STREAM_CLASS_INTERNAL_H */