Make API CTF-agnostic
[babeltrace.git] / include / babeltrace / ctf-ir / clock-value.h
index c40c828449324f41aff138f44b6200e6ab963f12..5f30242793cde1b42879657916d9b8f56be4b455 100644 (file)
@@ -40,14 +40,19 @@ extern "C" {
 struct bt_clock_class;
 struct bt_clock_value;
 
-extern struct bt_clock_value *bt_clock_value_create(
-               struct bt_clock_class *clock_class, uint64_t value);
-extern struct bt_clock_class *bt_clock_value_get_class(
+enum bt_clock_value_status {
+       BT_CLOCK_VALUE_STATUS_KNOWN,
+       BT_CLOCK_VALUE_STATUS_UNKNOWN,
+};
+
+extern struct bt_clock_class *bt_clock_value_borrow_clock_class(
+               struct bt_clock_value *clock_value);
+
+extern uint64_t bt_clock_value_get_value(
                struct bt_clock_value *clock_value);
-extern int bt_clock_value_get_value(
-               struct bt_clock_value *clock_value, uint64_t *raw_value);
-extern int bt_clock_value_get_value_ns_from_epoch(
-               struct bt_clock_value *clock_value, int64_t *value_ns);
+
+extern int bt_clock_value_get_ns_from_origin(
+               struct bt_clock_value *clock_value, int64_t *ns_from_origin);
 
 #ifdef __cplusplus
 }
This page took 0.029146 seconds and 4 git commands to generate.