src.ctf.lttng-live: make lttng_live_stream_iterator::current_msg a bt2::Message:...
[babeltrace.git] / src / plugins / ctf / lttng-live / lttng-live.hpp
index a4974f34642ce464a09ed921c38bb3a5a4738f74..56c86d39a679cadbe995e585800588c5ea1efa0e 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <babeltrace2/babeltrace.h>
 
+#include "cpp-common/bt2/message.hpp"
 #include "cpp-common/vendor/fmt/format.h" /* IWYU pragma: keep */
 
 #include "../common/src/metadata/tsdl/decoder.hpp"
@@ -118,11 +119,8 @@ struct lttng_live_stream_iterator
 
     enum lttng_live_stream_state state = LTTNG_LIVE_STREAM_QUIESCENT;
 
-    /*
-     * The current message produced by this live stream iterator. Owned by
-     * this.
-     */
-    const bt_message *current_msg = nullptr;
+    /* The current message produced by this live stream iterator. */
+    bt2::ConstMessage::Shared current_msg;
 
     /* Timestamp in nanoseconds of the current message (current_msg). */
     int64_t current_msg_ts_ns = 0;
This page took 0.026083 seconds and 4 git commands to generate.