ctf: allocate some structures with new
[babeltrace.git] / src / plugins / ctf / fs-src / metadata.hpp
1 /*
2 * SPDX-License-Identifier: MIT
3 *
4 * Copyright 2016 Philippe Proulx <pproulx@efficios.com>
5 */
6
7 #ifndef CTF_FS_METADATA_H
8 #define CTF_FS_METADATA_H
9
10 #include <stdio.h>
11
12 #include <babeltrace2/babeltrace.h>
13
14 #define CTF_FS_METADATA_FILENAME "metadata"
15
16 struct ctf_fs_metadata_config
17 {
18 bool force_clock_class_origin_unix_epoch = false;
19 int64_t clock_class_offset_s = 0;
20 int64_t clock_class_offset_ns = 0;
21 };
22
23 int ctf_fs_metadata_init(struct ctf_fs_metadata *metadata);
24
25 void ctf_fs_metadata_fini(struct ctf_fs_metadata *metadata);
26
27 int ctf_fs_metadata_set_trace_class(bt_self_component *self_comp, struct ctf_fs_trace *ctf_fs_trace,
28 struct ctf_fs_metadata_config *config);
29
30 FILE *ctf_fs_metadata_open_file(const char *trace_path, bt_logging_level log_level,
31 bt_self_component_class *comp_class);
32
33 bool ctf_metadata_is_packetized(FILE *fp, int *byte_order);
34
35 #endif /* CTF_FS_METADATA_H */
This page took 0.030745 seconds and 4 git commands to generate.