lib: fully detach CTF IR and CTF writer implementations
[babeltrace.git] / include / babeltrace / ctf-ir / stream-class-internal.h
index 9968fc54076f06f0c1e2a9e4cd59336116c9baa5..8dd7856782909916a3f1fc407227ac1bef64909c 100644 (file)
@@ -34,6 +34,7 @@
 #include <babeltrace/ctf-ir/utils-internal.h>
 #include <babeltrace/ctf-ir/visitor.h>
 #include <babeltrace/object-internal.h>
+#include <babeltrace/object-pool-internal.h>
 #include <babeltrace/babeltrace-internal.h>
 #include <glib.h>
 #include <inttypes.h>
@@ -84,6 +85,12 @@ struct bt_stream_class_common {
 
 struct bt_stream_class {
        struct bt_stream_class_common common;
+
+       /* Pool of `struct bt_field_wrapper *` */
+       struct bt_object_pool event_header_field_pool;
+
+       /* Pool of `struct bt_field_wrapper *` */
+       struct bt_object_pool packet_context_field_pool;
 };
 
 struct bt_event_class_common;
@@ -155,7 +162,7 @@ struct bt_trace_common *bt_stream_class_common_borrow_trace(
                struct bt_stream_class_common *stream_class)
 {
        BT_ASSERT(stream_class);
-       return (void *) bt_object_borrow_parent(stream_class);
+       return (void *) bt_object_borrow_parent(&stream_class->base);
 }
 
 static inline
This page took 0.023514 seconds and 4 git commands to generate.