X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf-ir%2Fstream-internal.h;h=41fe247d21afbe152a9b7dc80447781b47b64e0a;hb=03be3bcd6f3e4269f89672a418b5166ea343768f;hp=87395b107f37f609a9231401856e3261ced9ab0b;hpb=ef99818076ab38941a3c5bd70fc377f6b457d22f;p=babeltrace.git diff --git a/include/babeltrace/ctf-ir/stream-internal.h b/include/babeltrace/ctf-ir/stream-internal.h index 87395b10..41fe247d 100644 --- a/include/babeltrace/ctf-ir/stream-internal.h +++ b/include/babeltrace/ctf-ir/stream-internal.h @@ -107,4 +107,12 @@ BT_HIDDEN void bt_ctf_stream_remove_destroy_listener(struct bt_ctf_stream *stream, bt_ctf_stream_destroy_listener_func func, void *data); +static inline +struct bt_ctf_stream_class *bt_ctf_stream_borrow_stream_class( + struct bt_ctf_stream *stream) +{ + assert(stream); + return stream->stream_class; +} + #endif /* BABELTRACE_CTF_WRITER_STREAM_INTERNAL_H */