lib: rename all `*_STATUS_OVERFLOW` -> `*_STATUS_OVERFLOW_ERROR`
[babeltrace.git] / src / lib / trace-ir / clock-class.h
index 4cbf77eaf1533da3d20abbd219b9872d0e4bad1e..b39183c2c94db206160cc61b6e022e846aa45700 100644 (file)
@@ -29,7 +29,7 @@
 #include "common/macros.h"
 #include "common/common.h"
 #include "lib/object-pool.h"
-#include "compat/uuid.h"
+#include "common/uuid.h"
 #include <babeltrace2/types.h>
 #include "lib/property.h"
 #include "common/assert.h"
@@ -37,6 +37,8 @@
 #include <stdint.h>
 #include <glib.h>
 
+#include "lib/func-status.h"
+
 struct bt_clock_class {
        struct bt_object base;
 
@@ -60,7 +62,7 @@ struct bt_clock_class {
        uint64_t offset_cycles;
 
        struct {
-               uint8_t uuid[BABELTRACE_UUID_LEN];
+               bt_uuid_t uuid;
 
                /* NULL or `uuid` above */
                bt_uuid value;
@@ -113,7 +115,7 @@ int bt_clock_class_clock_value_from_ns_from_origin(
 
        return bt_common_clock_value_from_ns_from_origin(cc->offset_seconds,
                cc->offset_cycles, cc->frequency, ns_from_origin,
-               raw_value);
+               raw_value) ? BT_FUNC_STATUS_OVERFLOW_ERROR : BT_FUNC_STATUS_OK;
 }
 
 #endif /* BABELTRACE_TRACE_IR_CLOCK_CLASS_INTERNAL_H */
This page took 0.02523 seconds and 4 git commands to generate.