Move to kernel style SPDX license identifiers
[babeltrace.git] / include / babeltrace2-ctf-writer / trace.h
CommitLineData
3dca2276 1/*
0235b0db 2 * SPDX-License-Identifier: MIT
3dca2276 3 *
0235b0db 4 * Copyright (C) 2010-2019 EfficiOS Inc. and Linux Foundation
3dca2276
PP
5 */
6
0235b0db
MJ
7#ifndef BABELTRACE2_CTF_WRITER_TRACE_H
8#define BABELTRACE2_CTF_WRITER_TRACE_H
9
3dca2276
PP
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14struct bt_ctf_trace;
15struct bt_ctf_stream_class;
16struct bt_ctf_stream;
3dca2276
PP
17
18extern enum bt_ctf_byte_order bt_ctf_trace_get_native_byte_order(
19 struct bt_ctf_trace *trace);
20
21extern int bt_ctf_trace_set_native_byte_order(struct bt_ctf_trace *trace,
22 enum bt_ctf_byte_order native_byte_order);
23
6162e6b7 24extern const uint8_t *bt_ctf_trace_get_uuid(
3dca2276
PP
25 struct bt_ctf_trace *trace);
26
27extern int bt_ctf_trace_set_uuid(struct bt_ctf_trace *trace,
6162e6b7 28 const uint8_t *uuid);
3dca2276 29
3dca2276
PP
30extern int bt_ctf_trace_set_environment_field_integer(
31 struct bt_ctf_trace *trace, const char *name,
32 int64_t value);
33
34extern int bt_ctf_trace_set_environment_field_string(
35 struct bt_ctf_trace *trace, const char *name,
36 const char *value);
37
38extern struct bt_ctf_field_type *bt_ctf_trace_get_packet_header_field_type(
39 struct bt_ctf_trace *trace);
40
41extern int bt_ctf_trace_set_packet_header_field_type(struct bt_ctf_trace *trace,
42 struct bt_ctf_field_type *packet_header_type);
43
3dca2276
PP
44extern int64_t bt_ctf_trace_get_stream_class_count(
45 struct bt_ctf_trace *trace);
46
47extern struct bt_ctf_stream_class *bt_ctf_trace_get_stream_class_by_index(
48 struct bt_ctf_trace *trace, uint64_t index);
49
50extern struct bt_ctf_stream_class *bt_ctf_trace_get_stream_class_by_id(
51 struct bt_ctf_trace *trace, uint64_t id);
52
53extern int bt_ctf_trace_add_stream_class(struct bt_ctf_trace *trace,
54 struct bt_ctf_stream_class *stream_class);
55
56extern int64_t bt_ctf_trace_get_stream_count(struct bt_ctf_trace *trace);
57
58extern struct bt_ctf_stream *bt_ctf_trace_get_stream_by_index(
59 struct bt_ctf_trace *trace, uint64_t index);
60
61extern const char *bt_ctf_trace_get_name(struct bt_ctf_trace *trace);
62
63#ifdef __cplusplus
64}
65#endif
66
924dc299 67#endif /* BABELTRACE2_CTF_WRITER_TRACE_H */
This page took 0.047807 seconds and 4 git commands to generate.