param-validation: add static creation methods to bt_param_validation_value_descr
[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 BT_HIDDEN
29 int ctf_fs_metadata_init(struct ctf_fs_metadata *metadata);
30
31 BT_HIDDEN
32 void ctf_fs_metadata_fini(struct ctf_fs_metadata *metadata);
33
34 BT_HIDDEN
35 int ctf_fs_metadata_set_trace_class(bt_self_component *self_comp, struct ctf_fs_trace *ctf_fs_trace,
36 struct ctf_fs_metadata_config *config);
37
38 BT_HIDDEN
39 FILE *ctf_fs_metadata_open_file(const char *trace_path);
40
41 BT_HIDDEN
42 bool ctf_metadata_is_packetized(FILE *fp, int *byte_order);
43
44 #endif /* CTF_FS_METADATA_H */
This page took 0.031954 seconds and 4 git commands to generate.