lib: rename clock class's absolute property to "origin is Unix epoch"
[babeltrace.git] / include / babeltrace / trace-ir / clock-class-internal.h
index 86e0e3924b57538dc7b9de3218ee783103f13bd7..d91d549f7f4d4558bdfafe00f7bbf862c1703594 100644 (file)
@@ -2,12 +2,9 @@
 #define BABELTRACE_TRACE_IR_CLOCK_CLASS_INTERNAL_H
 
 /*
- * BabelTrace - Trace IR: Clock internal
- *
+ * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
  * Copyright 2013, 2014 Jérémie Galarneau <jeremie.galarneau@efficios.com>
  *
- * Author: Jérémie Galarneau <jeremie.galarneau@efficios.com>
- *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
  * in the Software without restriction, including without limitation the rights
@@ -67,7 +64,7 @@ struct bt_clock_class {
                bt_uuid value;
        } uuid;
 
-       bool is_absolute;
+       bool origin_is_unix_epoch;
 
        /*
         * This is computed every time you call
@@ -76,7 +73,7 @@ struct bt_clock_class {
         * base offset in nanoseconds including both `offset_seconds`
         * and `offset_cycles` above in the result. It is used to
         * accelerate future calls to
-        * bt_clock_value_get_ns_from_origin() and
+        * bt_clock_snapshot_get_ns_from_origin() and
         * bt_clock_class_cycles_to_ns_from_origin().
         *
         * `overflows` is true if the base offset cannot be computed
@@ -87,14 +84,14 @@ struct bt_clock_class {
                bool overflows;
        } base_offset;
 
-       /* Pool of `struct bt_clock_value *` */
-       struct bt_object_pool cv_pool;
+       /* Pool of `struct bt_clock_snapshot *` */
+       struct bt_object_pool cs_pool;
 
        bool frozen;
 };
 
 BT_HIDDEN
-void _bt_clock_class_freeze(struct bt_clock_class *clock_class);
+void _bt_clock_class_freeze(const struct bt_clock_class *clock_class);
 
 #ifdef BT_DEV_MODE
 # define bt_clock_class_freeze         _bt_clock_class_freeze
This page took 0.024216 seconds and 4 git commands to generate.