Move to kernel style SPDX license identifiers
[babeltrace.git] / src / ctf-writer / clock.h
... / ...
CommitLineData
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
18struct 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
24struct metadata_context;
25
26BT_HIDDEN
27int bt_ctf_clock_get_value(struct bt_ctf_clock *clock, uint64_t *value);
28
29BT_HIDDEN
30void 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 */
This page took 0.022627 seconds and 4 git commands to generate.