#define BABELTRACE_TRACE_IR_STREAM_INTERNAL_H
/*
+ * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
* Copyright 2013, 2014 Jérémie Galarneau <jeremie.galarneau@efficios.com>
*
- * Author: Jérémie Galarneau <jeremie.galarneau@efficios.com>
- *
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
struct bt_stream {
struct bt_object base;
- /* Weak: parent is this class's trace */
+ /* Owned by this */
struct bt_stream_class *class;
struct {
# define bt_stream_freeze(_stream)
#endif
+static inline
+struct bt_trace *bt_stream_borrow_trace_inline(const struct bt_stream *stream)
+{
+ BT_ASSERT(stream);
+ return (void *) bt_object_borrow_parent(&stream->base);
+}
+
#endif /* BABELTRACE_TRACE_IR_STREAM_INTERNAL_H */