ctf: add ClkClsConfig and use it
[babeltrace.git] / src / plugins / ctf / common / src / metadata / tsdl / decoder.hpp
index 0aee6173c845374cf6f10a390c5759bba2f42431..a6142cb3ab05ce295053f4ddd7779c9e193991df 100644 (file)
@@ -7,7 +7,6 @@
 #ifndef _METADATA_DECODER_H
 #define _METADATA_DECODER_H
 
-#include <stdint.h>
 #include <stdio.h>
 
 #include <babeltrace2/babeltrace.h>
 #include "cpp-common/bt2c/logging.hpp"
 #include "cpp-common/vendor/fmt/format.h" /* IWYU pragma: keep */
 
+#include "../../../src/clk-cls-cfg.hpp"
+
+/* A CTF metadata decoder object */
+struct ctf_metadata_decoder;
+
 /* CTF metadata decoder status */
 enum ctf_metadata_decoder_status
 {
@@ -65,10 +69,7 @@ struct ctf_metadata_decoder_config
     /* Weak, used to create a bt_trace_class, if not nullptr. */
     bt_self_component *self_comp = nullptr;
 
-    /* Additional clock class offset to apply */
-    int64_t clock_class_offset_s = 0;
-    int64_t clock_class_offset_ns = 0;
-    bool force_clock_class_origin_unix_epoch = false;
+    ctf::src::ClkClsCfg clkClsCfg;
 
     /* True to create trace class objects */
     bool create_trace_class = false;
This page took 0.02318 seconds and 4 git commands to generate.