X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace2%2Ftrace-ir%2Fclock-snapshot-const.h;h=ee246408d4043e9aace8fcef133d5ff712af0b76;hp=6ac6576abf3432e68aba3f355f458781353d3c52;hb=d24d56638469189904fb6ddbb3c725817b3e9417;hpb=15caa1ca4fac30bd196602bd136e48fda3892de2 diff --git a/include/babeltrace2/trace-ir/clock-snapshot-const.h b/include/babeltrace2/trace-ir/clock-snapshot-const.h index 6ac6576a..ee246408 100644 --- a/include/babeltrace2/trace-ir/clock-snapshot-const.h +++ b/include/babeltrace2/trace-ir/clock-snapshot-const.h @@ -32,22 +32,28 @@ /* For bt_clock_class, bt_clock_snapshot */ #include +/* For __BT_FUNC_STATUS_* */ +#define __BT_FUNC_STATUS_ENABLE +#include +#undef __BT_FUNC_STATUS_ENABLE + #ifdef __cplusplus extern "C" { #endif -typedef enum bt_clock_snapshot_status { - BT_CLOCK_SNAPSHOT_STATUS_OK = 0, - BT_CLOCK_SNAPSHOT_STATUS_OVERFLOW = -75, -} bt_clock_snapshot_status; - extern const bt_clock_class *bt_clock_snapshot_borrow_clock_class_const( const bt_clock_snapshot *clock_snapshot); extern uint64_t bt_clock_snapshot_get_value( const bt_clock_snapshot *clock_snapshot); -extern bt_clock_snapshot_status bt_clock_snapshot_get_ns_from_origin( +typedef enum bt_clock_snapshot_get_ns_from_origin_status { + BT_CLOCK_SNAPSHOT_GET_NS_FROM_ORIGIN_STATUS_OK = __BT_FUNC_STATUS_OK, + BT_CLOCK_SNAPSHOT_GET_NS_FROM_ORIGIN_STATUS_OVERFLOW = __BT_FUNC_STATUS_OVERFLOW, +} bt_clock_snapshot_get_ns_from_origin_status; + +extern bt_clock_snapshot_get_ns_from_origin_status +bt_clock_snapshot_get_ns_from_origin( const bt_clock_snapshot *clock_snapshot, int64_t *ns_from_origin); @@ -55,4 +61,6 @@ extern bt_clock_snapshot_status bt_clock_snapshot_get_ns_from_origin( } #endif +#include + #endif /* BABELTRACE_TRACE_IR_CLOCK_SNAPSHOT_CONST_H */