Fix: clock-class.c: cache ns from Epoch and check for overflows
[babeltrace.git] / include / babeltrace / ctf-ir / clock-class-internal.h
index 5ebd86ed1207cf1f832e04fdff8d70da0b782041..7f901e7e0070483f12201b918976dcc8fe12773b 100644 (file)
@@ -33,6 +33,8 @@
 #include <babeltrace/babeltrace-internal.h>
 #include <babeltrace/compat/uuid-internal.h>
 #include <babeltrace/types.h>
+#include <stdbool.h>
+#include <stdint.h>
 #include <glib.h>
 
 struct bt_ctf_clock_class {
@@ -58,6 +60,8 @@ struct bt_ctf_clock_value {
        struct bt_object base;
        struct bt_ctf_clock_class *clock_class;
        uint64_t value;
+       bool ns_from_epoch_overflows;
+       int64_t ns_from_epoch;
 };
 
 BT_HIDDEN
This page took 0.02411 seconds and 4 git commands to generate.