src.ctf.fs: make ctf_fs_ds_index_create return a unique_ptr
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 4 Dec 2023 20:20:20 +0000 (20:20 +0000)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 17 Apr 2024 17:57:53 +0000 (13:57 -0400)
commit441fa75534ebec8e7fa10089e59517674a417dfd
treed0e6c84d2bef48957e237c504669dbd585ad065d
parentf3d741246e4568e4a985b086d1aba233e39e853f
src.ctf.fs: make ctf_fs_ds_index_create return a unique_ptr

Introduce ctf_fs_ds_index::UP, a unique_ptr with a deleter that calls
ctf_fs_ds_index_destroy.  Make ctf_fs_ds_index_create (and the
other functions creating an index in data-stream-file.cpp) return it.

Change-Id: Id04124aeaff3384e566a43fbbd6c1fedd2bf9bc3
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8251
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12289
src/plugins/ctf/fs-src/data-stream-file.cpp
src/plugins/ctf/fs-src/data-stream-file.hpp
src/plugins/ctf/fs-src/fs.cpp
This page took 0.02502 seconds and 4 git commands to generate.