X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fplugins%2Fctf%2Ffs-src%2Ffs.hpp;h=4446524c64728af2f5707c8209a3cfb21d9be498;hb=ef7d7ac2138fcf789e9d9b8c7464eb0ad37b8816;hp=7aa4568e0a5a9f8fdaa21462e8f9e09ae9ffd6bd;hpb=ca92fb3746f7333a28549a39f148eab9c8402f89;p=babeltrace.git diff --git a/src/plugins/ctf/fs-src/fs.hpp b/src/plugins/ctf/fs-src/fs.hpp index 7aa4568e..4446524c 100644 --- a/src/plugins/ctf/fs-src/fs.hpp +++ b/src/plugins/ctf/fs-src/fs.hpp @@ -14,6 +14,7 @@ #include +#include "cpp-common/bt2c/data-len.hpp" #include "cpp-common/bt2c/glib-up.hpp" #include "cpp-common/bt2c/logging.hpp" @@ -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'