lib: add internal object pool API and use it; adapt plugins/tests
[babeltrace.git] / include / babeltrace / ctf-ir / stream-internal.h
index 78c16c1d6cb4f34df3c0e72a70eeac5b62c61c4d..245fd7816c714e2c1b63f454763b8a3f02e0361a 100644 (file)
@@ -32,6 +32,7 @@
 #include <babeltrace/ctf-ir/stream.h>
 #include <babeltrace/ctf-ir/utils-internal.h>
 #include <babeltrace/object-internal.h>
+#include <babeltrace/object-pool-internal.h>
 #include <babeltrace/babeltrace-internal.h>
 #include <glib.h>
 
@@ -58,6 +59,9 @@ struct bt_stream_common {
 
 struct bt_stream {
        struct bt_stream_common common;
+
+       /* Pool of `struct bt_packet *` */
+       struct bt_object_pool packet_pool;
 };
 
 BT_HIDDEN
This page took 0.023498 seconds and 4 git commands to generate.