lib: standardize status of bt_util_clock_cycles_to_ns_from_origin()
[babeltrace.git] / include / babeltrace2 / util.h
index 8d9585c3288b07a03c6aee6187eb3d518e28240f..d4826541f4f7734d05f2921764745b74a9190d8b 100644 (file)
 extern "C" {
 #endif
 
-typedef enum bt_util_status {
-       BT_UTIL_STATUS_OK = 0,
-       BT_UTIL_STATUS_OVERFLOW_ERROR = -75,
-} bt_util_status;
+typedef enum bt_util_clock_cycles_to_ns_from_origin_status {
+       BT_UTIL_CLOCK_CYCLES_TO_NS_FROM_ORIGIN_STATUS_OK                = __BT_FUNC_STATUS_OK,
+       BT_UTIL_CLOCK_CYCLES_TO_NS_FROM_ORIGIN_STATUS_OVERFLOW_ERROR    = __BT_FUNC_STATUS_OVERFLOW_ERROR,
+} bt_util_clock_cycles_to_ns_from_origin_status;
 
-bt_util_status bt_util_clock_cycles_to_ns_from_origin(uint64_t cycles,
+bt_util_clock_cycles_to_ns_from_origin_status
+bt_util_clock_cycles_to_ns_from_origin(uint64_t cycles,
                uint64_t frequency, int64_t offset_seconds,
                uint64_t offset_cycles, int64_t *ns);
 
This page took 0.02491 seconds and 4 git commands to generate.