struct ctf_fs_metadata
{
+ using UP = std::unique_ptr<ctf_fs_metadata>;
+
/* Owned by this */
ctf_metadata_decoder_up decoder;
- /* Owned by this */
- bt_trace_class *trace_class = nullptr;
+ bt2::TraceClass::Shared trace_class;
/* Weak (owned by `decoder` above) */
struct ctf_trace_class *tc = nullptr;
- /* Owned by this */
- char *text = nullptr;
-
int bo = 0;
};
bt2c::Logger logger;
- /* Owned by this */
- struct ctf_fs_metadata *metadata = nullptr;
+ ctf_fs_metadata::UP metadata;
- /* Owned by this */
- bt_trace *trace = nullptr;
+ bt2::Trace::Shared trace;
std::vector<ctf_fs_ds_file_group::UP> ds_file_groups;
- /* Owned by this */
- GString *path = nullptr;
+ std::string path;
/* Next automatic stream ID when not provided by packet header */
uint64_t next_stream_id = 0;