projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clock class API: use status
[babeltrace.git]
/
include
/
babeltrace
/
trace-ir
/
clock-class-const.h
diff --git
a/include/babeltrace/trace-ir/clock-class-const.h
b/include/babeltrace/trace-ir/clock-class-const.h
index 0974facc848b0740a0db303aa8c9e7ef82035ef2..f7afc24802b491d4e19628571b296da6dc2cfd4c 100644
(file)
--- a/
include/babeltrace/trace-ir/clock-class-const.h
+++ b/
include/babeltrace/trace-ir/clock-class-const.h
@@
-36,6
+36,12
@@
extern "C" {
#endif
extern "C" {
#endif
+enum bt_clock_class_status {
+ BT_CLOCK_CLASS_STATUS_OK = 0,
+ BT_CLOCK_CLASS_STATUS_NOMEM = -12,
+ BT_CLOCK_CLASS_STATUS_OVERFLOW = -75,
+};
+
extern const char *bt_clock_class_get_name(
const bt_clock_class *clock_class);
extern const char *bt_clock_class_get_name(
const bt_clock_class *clock_class);
@@
-57,7
+63,7
@@
extern bt_bool bt_clock_class_is_absolute(
extern bt_uuid bt_clock_class_get_uuid(
const bt_clock_class *clock_class);
extern bt_uuid bt_clock_class_get_uuid(
const bt_clock_class *clock_class);
-extern
int
bt_clock_class_cycles_to_ns_from_origin(
+extern
enum bt_clock_class_status
bt_clock_class_cycles_to_ns_from_origin(
const bt_clock_class *clock_class,
uint64_t cycles, int64_t *ns_from_origin);
const bt_clock_class *clock_class,
uint64_t cycles, int64_t *ns_from_origin);
This page took
0.022992 seconds
and
4
git commands to generate.