| 1 | /* |
| 2 | * SPDX-License-Identifier: MIT |
| 3 | * |
| 4 | * Copyright 2017 Philippe Proulx <pproulx@efficios.com> |
| 5 | */ |
| 6 | |
| 7 | #ifndef BABELTRACE_CTF_WRITER_CLOCK_INTERNAL_H |
| 8 | #define BABELTRACE_CTF_WRITER_CLOCK_INTERNAL_H |
| 9 | |
| 10 | #include <babeltrace2-ctf-writer/clock.h> |
| 11 | #include "common/macros.h" |
| 12 | #include <glib.h> |
| 13 | |
| 14 | #include "clock-class.h" |
| 15 | #include "object.h" |
| 16 | #include "trace.h" |
| 17 | |
| 18 | struct bt_ctf_clock { |
| 19 | struct bt_ctf_object base; |
| 20 | struct bt_ctf_clock_class *clock_class; |
| 21 | uint64_t value; /* Current clock value */ |
| 22 | }; |
| 23 | |
| 24 | struct metadata_context; |
| 25 | |
| 26 | BT_HIDDEN |
| 27 | int bt_ctf_clock_get_value(struct bt_ctf_clock *clock, uint64_t *value); |
| 28 | |
| 29 | BT_HIDDEN |
| 30 | void bt_ctf_clock_class_serialize(struct bt_ctf_clock_class *clock_class, |
| 31 | struct metadata_context *context); |
| 32 | |
| 33 | #endif /* BABELTRACE_CTF_WRITER_CLOCK_INTERNAL_H */ |