src.ctf.fs: remove ctf_fs_ds_file_group_create, add constructor
[babeltrace.git] / src / plugins / ctf / fs-src / data-stream-file.hpp
index f27dbde701206202f33ebb06c0da08d80101bbaa..e00a5cc43831447b9819cea817657b5434e01792 100644 (file)
@@ -121,6 +121,16 @@ struct ctf_fs_ds_file_group
 {
     using UP = std::unique_ptr<ctf_fs_ds_file_group>;
 
+    explicit ctf_fs_ds_file_group(struct ctf_fs_trace * const trace,
+                                  ctf_stream_class * const scParam, const uint64_t streamInstanceId,
+                                  ctf_fs_ds_index indexParam) noexcept :
+
+        sc {scParam},
+        stream_id(streamInstanceId), ctf_fs_trace {trace}, index {std::move(indexParam)}
+
+    {
+    }
+
     /*
      * Insert ds_file_info in the list of ds_file_infos at the right
      * place to keep it sorted.
@@ -159,11 +169,6 @@ bt2s::optional<ctf_fs_ds_index> ctf_fs_ds_file_build_index(struct ctf_fs_ds_file
 
 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,
-                                                     uint64_t stream_instance_id,
-                                                     ctf_fs_ds_index index);
-
 /*
  * Medium operations to iterate on a single ctf_fs_ds_file.
  *
This page took 0.023578 seconds and 4 git commands to generate.