X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf-ir%2Fstream-class-internal.h;h=88d38c2100b97db509f1ebbfd2631f3f597afc17;hb=61cf588beae752e5ddfc60b6b5310f769ac9e852;hp=3b368d1de2230bb26619b7a8763f09a052319af2;hpb=d3814b5400bc383ee8645cd76017e2aa6fea5dfe;p=babeltrace.git diff --git a/include/babeltrace/ctf-ir/stream-class-internal.h b/include/babeltrace/ctf-ir/stream-class-internal.h index 3b368d1d..88d38c21 100644 --- a/include/babeltrace/ctf-ir/stream-class-internal.h +++ b/include/babeltrace/ctf-ir/stream-class-internal.h @@ -27,17 +27,17 @@ * SOFTWARE. */ -#include #include #include #include #include +#include #include #include #include struct bt_ctf_stream_class { - struct bt_ctf_ref ref_count; + struct bt_object base; GString *name; struct bt_ctf_clock *clock; GPtrArray *event_classes; /* Array of pointers to bt_ctf_event_class */ @@ -45,8 +45,6 @@ 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; @@ -71,7 +69,7 @@ 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); +int bt_ctf_stream_class_set_id_no_check( + struct bt_ctf_stream_class *stream_class, uint32_t id); #endif /* BABELTRACE_CTF_IR_STREAM_CLASS_INTERNAL_H */