src.ctf.fs: make ctf_fs_ds_file_group::index a ctf_fs_ds_index::UP
[babeltrace.git] / src / plugins / ctf / fs-src / data-stream-file.hpp
index a87877caf319e1d08bf7007cdf6730e310c5c181..9e8696e4b7cd1f167d605e11f33b4d4b26073e9a 100644 (file)
@@ -149,10 +149,7 @@ struct ctf_fs_ds_file_group
     /* Weak, belongs to component */
     struct ctf_fs_trace *ctf_fs_trace = nullptr;
 
-    /*
-     * Owned by this.
-     */
-    struct ctf_fs_ds_index *index = nullptr;
+    ctf_fs_ds_index::UP index;
 };
 
 struct ctf_fs_ds_file *ctf_fs_ds_file_create(struct ctf_fs_trace *ctf_fs_trace, bt_stream *stream,
@@ -173,7 +170,7 @@ ctf_fs_ds_file_info::UP ctf_fs_ds_file_info_create(const char *path, int64_t beg
 ctf_fs_ds_file_group::UP ctf_fs_ds_file_group_create(struct ctf_fs_trace *ctf_fs_trace,
                                                      struct ctf_stream_class *sc,
                                                      uint64_t stream_instance_id,
-                                                     struct ctf_fs_ds_index *index);
+                                                     ctf_fs_ds_index::UP index);
 
 /*
  * Medium operations to iterate on a single ctf_fs_ds_file.
This page took 0.023418 seconds and 4 git commands to generate.