src.ctf.lttng-live: make live_viewer_connection::{relay_hostname,target_hostname...
[babeltrace.git] / src / plugins / ctf / lttng-live / viewer-connection.hpp
index 707ce80b6741a0db254f2028758b5c20074a7f2c..586dd7ff99bfe1bcab538c26da51b5c1fb87c9b8 100644 (file)
@@ -15,6 +15,7 @@
 #include <babeltrace2/babeltrace.h>
 
 #include "compat/socket.hpp"
+#include "cpp-common/bt2c/glib-up.hpp"
 #include "cpp-common/bt2c/logging.hpp"
 
 #define LTTNG_DEFAULT_NETWORK_VIEWER_PORT 5344
@@ -58,10 +59,10 @@ struct live_viewer_connection
 
     std::string url;
 
-    GString *relay_hostname = nullptr;
-    GString *target_hostname = nullptr;
-    GString *session_name = nullptr;
-    GString *proto = nullptr;
+    bt2c::GStringUP relay_hostname;
+    bt2c::GStringUP target_hostname;
+    bt2c::GStringUP session_name;
+    bt2c::GStringUP proto;
 
     BT_SOCKET control_sock {};
     int port = 0;
This page took 0.024785 seconds and 4 git commands to generate.