Remove Babeltrace 1 files and reorganize the tree
[babeltrace.git] / include / babeltrace / ctf-ir / event-class-internal.h
index 43b6ac41ce05420dcc27b80d1d74e8a01011859f..1546a78a4ebaab7851b44a31958942c448501c53 100644 (file)
@@ -31,7 +31,6 @@
 #include <babeltrace/ctf-ir/fields.h>
 #include <babeltrace/babeltrace-internal.h>
 #include <babeltrace/values.h>
-#include <babeltrace/ctf/types.h>
 #include <babeltrace/ctf-ir/stream-class.h>
 #include <babeltrace/ctf-ir/stream.h>
 #include <babeltrace/object-internal.h>
@@ -78,4 +77,12 @@ BT_HIDDEN
 int bt_ctf_event_class_set_stream_id(struct bt_ctf_event_class *event_class,
                uint32_t stream_id);
 
+static inline
+struct bt_ctf_stream_class *bt_ctf_event_class_borrow_stream_class(
+               struct bt_ctf_event_class *event_class)
+{
+       assert(event_class);
+       return (void *) bt_object_borrow_parent(event_class);
+}
+
 #endif /* BABELTRACE_CTF_IR_EVENT_CLASS_INTERNAL_H */
This page took 0.035821 seconds and 4 git commands to generate.