src.ctf.fs: make ctf_fs_ds_file_info_create return a unique_ptr
[babeltrace.git] / src / plugins / ctf / fs-src / data-stream-file.hpp
index 6b5c3db71efb0ca4715c42e345a0bbc69703b2bb..86cc218b854e7f1e31e5596f049fb21cf80cc576 100644 (file)
@@ -22,6 +22,8 @@
 
 struct ctf_fs_ds_file_info
 {
+    using UP = std::unique_ptr<ctf_fs_ds_file_info>;
+
     std::string path;
 
     /* Guaranteed to be set, as opposed to the index. */
@@ -162,7 +164,7 @@ void ctf_fs_ds_index_destroy(struct ctf_fs_ds_index *index);
 
 void ctf_fs_ds_file_info_destroy(struct ctf_fs_ds_file_info *ds_file_info);
 
-struct ctf_fs_ds_file_info *ctf_fs_ds_file_info_create(const char *path, int64_t begin_ns);
+ctf_fs_ds_file_info::UP ctf_fs_ds_file_info_create(const char *path, int64_t begin_ns);
 
 ctf_fs_ds_file_group::UP ctf_fs_ds_file_group_create(struct ctf_fs_trace *ctf_fs_trace,
                                                      struct ctf_stream_class *sc,
This page took 0.024809 seconds and 4 git commands to generate.