Commit | Line | Data |
---|---|---|
273b65be | 1 | /* |
0235b0db | 2 | * SPDX-License-Identifier: MIT |
273b65be | 3 | * |
0235b0db | 4 | * Copyright 2017 Philippe Proulx <pproulx@efficios.com> |
273b65be JG |
5 | */ |
6 | ||
0235b0db MJ |
7 | #ifndef BABELTRACE_CTF_WRITER_CLOCK_INTERNAL_H |
8 | #define BABELTRACE_CTF_WRITER_CLOCK_INTERNAL_H | |
9 | ||
217cf9d3 | 10 | #include <babeltrace2-ctf-writer/clock.h> |
91d81473 | 11 | #include "common/macros.h" |
273b65be | 12 | #include <glib.h> |
578e048b MJ |
13 | |
14 | #include "clock-class.h" | |
15 | #include "object.h" | |
16 | #include "trace.h" | |
273b65be JG |
17 | |
18 | struct bt_ctf_clock { | |
e1e02a22 | 19 | struct bt_ctf_object base; |
3dca2276 | 20 | struct bt_ctf_clock_class *clock_class; |
e1e30a8c | 21 | uint64_t value; /* Current clock value */ |
61ec14e6 JG |
22 | }; |
23 | ||
3dca2276 PP |
24 | struct metadata_context; |
25 | ||
24626e8b JG |
26 | BT_HIDDEN |
27 | int bt_ctf_clock_get_value(struct bt_ctf_clock *clock, uint64_t *value); | |
28 | ||
3dca2276 PP |
29 | BT_HIDDEN |
30 | void bt_ctf_clock_class_serialize(struct bt_ctf_clock_class *clock_class, | |
31 | struct metadata_context *context); | |
32 | ||
ac0c6bdd | 33 | #endif /* BABELTRACE_CTF_WRITER_CLOCK_INTERNAL_H */ |