projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: split trace API into trace class and trace APIs
[babeltrace.git]
/
include
/
babeltrace
/
trace-ir
/
stream-internal.h
diff --git
a/include/babeltrace/trace-ir/stream-internal.h
b/include/babeltrace/trace-ir/stream-internal.h
index a22bad255a1506f43ee52f6bce371af611c9bfdb..a95f90c03fe633d76a92f354e41171e960de61ca 100644
(file)
--- a/
include/babeltrace/trace-ir/stream-internal.h
+++ b/
include/babeltrace/trace-ir/stream-internal.h
@@
-38,7
+38,7
@@
struct bt_stream;
struct bt_stream {
struct bt_object base;
struct bt_stream {
struct bt_object base;
- /*
Weak: parent is this class's trace
*/
+ /*
Owned by this
*/
struct bt_stream_class *class;
struct {
struct bt_stream_class *class;
struct {
@@
-65,4
+65,11
@@
void _bt_stream_freeze(const struct bt_stream *stream);
# define bt_stream_freeze(_stream)
#endif
# 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 */
#endif /* BABELTRACE_TRACE_IR_STREAM_INTERNAL_H */
This page took
0.024847 seconds
and
4
git commands to generate.