Visibility hidden by default
[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 <stdbool.h>
11 #include <stdio.h>
12 #include <glib.h>
13 #include "common/macros.h"
14 #include <babeltrace2/babeltrace.h>
15
16 #define CTF_FS_METADATA_FILENAME "metadata"
17
18 struct ctf_fs_trace;
19 struct ctf_fs_metadata;
20
21 struct ctf_fs_metadata_config
22 {
23 bool force_clock_class_origin_unix_epoch;
24 int64_t clock_class_offset_s;
25 int64_t clock_class_offset_ns;
26 };
27
28 int ctf_fs_metadata_init(struct ctf_fs_metadata *metadata);
29
30 void ctf_fs_metadata_fini(struct ctf_fs_metadata *metadata);
31
32 int ctf_fs_metadata_set_trace_class(bt_self_component *self_comp, struct ctf_fs_trace *ctf_fs_trace,
33 struct ctf_fs_metadata_config *config);
34
35 FILE *ctf_fs_metadata_open_file(const char *trace_path);
36
37 bool ctf_metadata_is_packetized(FILE *fp, int *byte_order);
38
39 #endif /* CTF_FS_METADATA_H */
This page took 0.031357 seconds and 4 git commands to generate.