struct lttng_live_session
{
+ using UP = std::unique_ptr<lttng_live_session>;
+
explicit lttng_live_session(const bt2c::Logger& parentLogger) :
logger {parentLogger, "PLUGIN/SRC.CTF.LTTNG-LIVE/SESSION"}
{
/* Weak reference. */
bt_self_message_iterator *self_msg_iter = nullptr;
- /* Owned by this. */
- struct live_viewer_connection *viewer_connection = nullptr;
+ live_viewer_connection::UP viewer_connection;
- /* Array of pointers to struct lttng_live_session. */
- GPtrArray *sessions = nullptr;
+ std::vector<lttng_live_session::UP> sessions;
/* Number of live stream iterator this message iterator has.*/
uint64_t active_stream_iter = 0;