Fix: lib: add NULL check for destroy_listeners in destroy_component_class
[babeltrace.git] / src / ctf-writer / clock.h
CommitLineData
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
18struct 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
24struct metadata_context;
25
24626e8b
JG
26BT_HIDDEN
27int bt_ctf_clock_get_value(struct bt_ctf_clock *clock, uint64_t *value);
28
3dca2276
PP
29BT_HIDDEN
30void 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 */
This page took 0.085823 seconds and 4 git commands to generate.