projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow ctf-writer to use new time-keeping facilities
[babeltrace.git]
/
formats
/
ctf
/
ir
/
clock.c
diff --git
a/formats/ctf/ir/clock.c
b/formats/ctf/ir/clock.c
index 4eed39c718a42a6f67e37883d89929709e95814a..e24b864b04e200d02f02f4cb96d4aaad5d7d3333 100644
(file)
--- a/
formats/ctf/ir/clock.c
+++ b/
formats/ctf/ir/clock.c
@@
-434,6
+434,21
@@
void bt_ctf_clock_serialize(struct bt_ctf_clock *clock,
g_string_append(context->string, "};\n\n");
}
g_string_append(context->string, "};\n\n");
}
+BT_HIDDEN
+int bt_ctf_clock_get_value(struct bt_ctf_clock *clock, uint64_t *value)
+{
+ int ret = 0;
+
+ if (!clock || !value) {
+ ret = -1;
+ goto end;
+ }
+
+ *value = clock->value;
+end:
+ return ret;
+}
+
static
void bt_ctf_clock_destroy(struct bt_object *obj)
{
static
void bt_ctf_clock_destroy(struct bt_object *obj)
{
This page took
0.023162 seconds
and
4
git commands to generate.