Move to kernel style SPDX license identifiers
[babeltrace.git] / include / babeltrace2-ctf-writer / clock-class.h
CommitLineData
ec4644dd 1/*
0235b0db 2 * SPDX-License-Identifier: MIT
ec4644dd 3 *
0235b0db 4 * Copyright (C) 2010-2019 EfficiOS Inc. and Linux Foundation
ec4644dd
FD
5 */
6
0235b0db
MJ
7#ifndef BABELTRACE2_CTF_WRITER_CLOCK_CLASS_H
8#define BABELTRACE2_CTF_WRITER_CLOCK_CLASS_H
9
ec4644dd
FD
10#include <stdint.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16struct bt_ctf_clock_class;
17
18extern struct bt_ctf_clock_class *bt_ctf_clock_class_create(const char *name,
19 uint64_t freq);
20
21extern const char *bt_ctf_clock_class_get_name(
22 struct bt_ctf_clock_class *clock_class);
23
24extern int bt_ctf_clock_class_set_name(struct bt_ctf_clock_class *clock_class,
25 const char *name);
26
27extern const char *bt_ctf_clock_class_get_description(
28 struct bt_ctf_clock_class *clock_class);
29
30extern int bt_ctf_clock_class_set_description(
31 struct bt_ctf_clock_class *clock_class,
32 const char *desc);
33
34extern uint64_t bt_ctf_clock_class_get_frequency(
35 struct bt_ctf_clock_class *clock_class);
36
37extern int bt_ctf_clock_class_set_frequency(
38 struct bt_ctf_clock_class *clock_class, uint64_t freq);
39
40extern uint64_t bt_ctf_clock_class_get_precision(
41 struct bt_ctf_clock_class *clock_class);
42
43extern int bt_ctf_clock_class_set_precision(
44 struct bt_ctf_clock_class *clock_class, uint64_t precision);
45
46extern int bt_ctf_clock_class_get_offset_s(
47 struct bt_ctf_clock_class *clock_class, int64_t *seconds);
48
49extern int bt_ctf_clock_class_set_offset_s(
50 struct bt_ctf_clock_class *clock_class, int64_t seconds);
51
52extern int bt_ctf_clock_class_get_offset_cycles(
53 struct bt_ctf_clock_class *clock_class, int64_t *cycles);
54
55extern int bt_ctf_clock_class_set_offset_cycles(
56 struct bt_ctf_clock_class *clock_class, int64_t cycles);
57
00409097 58extern bt_ctf_bool bt_ctf_clock_class_is_absolute(
ec4644dd
FD
59 struct bt_ctf_clock_class *clock_class);
60
61extern int bt_ctf_clock_class_set_is_absolute(
00409097 62 struct bt_ctf_clock_class *clock_class, bt_ctf_bool is_absolute);
ec4644dd 63
6162e6b7 64extern const uint8_t *bt_ctf_clock_class_get_uuid(
ec4644dd
FD
65 struct bt_ctf_clock_class *clock_class);
66
67extern int bt_ctf_clock_class_set_uuid(struct bt_ctf_clock_class *clock_class,
6162e6b7 68 const uint8_t *uuid);
ec4644dd
FD
69#ifdef __cplusplus
70}
71#endif
72
924dc299 73#endif /* BABELTRACE2_CTF_WRITER_CLOCK_CLASS_H */
This page took 0.046528 seconds and 4 git commands to generate.