-int bt_ctf_stream_class_set_trace(struct bt_ctf_stream_class *stream_class,
- struct bt_ctf_trace *trace);
+int bt_ctf_stream_class_map_clock_class(
+ struct bt_ctf_stream_class *stream_class,
+ struct bt_ctf_field_type *packet_context_type,
+ struct bt_ctf_field_type *event_header_type);
+
+static inline
+struct bt_ctf_trace *bt_ctf_stream_class_borrow_trace(
+ struct bt_ctf_stream_class *stream_class)
+{
+ assert(stream_class);
+ return (void *) bt_object_borrow_parent(stream_class);
+}