X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=src%2Fplugins%2Fctf%2Ffs-src%2Fdata-stream-file.hpp;h=9e8696e4b7cd1f167d605e11f33b4d4b26073e9a;hb=fe2f9cda63e15a502a79677034779433986b1652;hp=a87877caf319e1d08bf7007cdf6730e310c5c181;hpb=441fa75534ebec8e7fa10089e59517674a417dfd;p=babeltrace.git diff --git a/src/plugins/ctf/fs-src/data-stream-file.hpp b/src/plugins/ctf/fs-src/data-stream-file.hpp index a87877ca..9e8696e4 100644 --- a/src/plugins/ctf/fs-src/data-stream-file.hpp +++ b/src/plugins/ctf/fs-src/data-stream-file.hpp @@ -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.