ctf: use unique_ptr to manage ctf_metadata_decoder lifetime
[babeltrace.git] / src / plugins / ctf / fs-src / fs.hpp
index 54a8ec0234df248c846f992f111c684c8c0d9cb9..1cb9e8b058fef34c9bcf286300055506e26cdb30 100644 (file)
@@ -18,6 +18,7 @@
 #include "cpp-common/bt2c/logging.hpp"
 
 #include "metadata.hpp"
+#include "plugins/ctf/common/src/metadata/tsdl/decoder.hpp"
 
 extern bool ctf_fs_debug;
 
@@ -42,7 +43,7 @@ struct ctf_fs_file
 struct ctf_fs_metadata
 {
     /* Owned by this */
-    struct ctf_metadata_decoder *decoder = nullptr;
+    ctf_metadata_decoder_up decoder;
 
     /* Owned by this */
     bt_trace_class *trace_class = nullptr;
This page took 0.027288 seconds and 4 git commands to generate.