src.ctf.fs: use DataLen in ctf_fs_ds_index_entry
[babeltrace.git] / src / plugins / ctf / fs-src / fs.hpp
index 1cb9e8b058fef34c9bcf286300055506e26cdb30..4446524c64728af2f5707c8209a3cfb21d9be498 100644 (file)
@@ -14,6 +14,7 @@
 
 #include <babeltrace2/babeltrace.h>
 
+#include "cpp-common/bt2c/data-len.hpp"
 #include "cpp-common/bt2c/glib-up.hpp"
 #include "cpp-common/bt2c/logging.hpp"
 
@@ -79,7 +80,7 @@ struct ctf_fs_component
     /* Owned by this */
     struct ctf_fs_trace *trace = nullptr;
 
-    struct ctf_fs_metadata_config metadata_config;
+    ctf::src::ClkClsCfg clkClsCfg;
 };
 
 struct ctf_fs_trace
@@ -109,14 +110,21 @@ struct ctf_fs_trace
 
 struct ctf_fs_ds_index_entry
 {
+    explicit ctf_fs_ds_index_entry(const bt2c::DataLen offsetParam,
+                                   const bt2c::DataLen packetSizeParam) noexcept :
+        offset(offsetParam),
+        packetSize(packetSizeParam)
+    {
+    }
+
     /* Weak, belongs to ctf_fs_ds_file_info. */
     const char *path = nullptr;
 
-    /* Position, in bytes, of the packet from the beginning of the file. */
-    uint64_t offset = 0;
+    /* Position of the packet from the beginning of the file. */
+    bt2c::DataLen offset;
 
-    /* Size of the packet, in bytes. */
-    uint64_t packet_size = 0;
+    /* Size of the packet. */
+    bt2c::DataLen packetSize;
 
     /*
      * Extracted from the packet context, relative to the respective fields'
This page took 0.033175 seconds and 4 git commands to generate.