2 * SPDX-License-Identifier: MIT
4 * Copyright 2016 Philippe Proulx <pproulx@efficios.com>
7 #ifndef CTF_FS_METADATA_H
8 #define CTF_FS_METADATA_H
13 #include "common/macros.h"
14 #include <babeltrace2/babeltrace.h>
16 #define CTF_FS_METADATA_FILENAME "metadata"
19 struct ctf_fs_metadata;
21 struct ctf_fs_metadata_config
23 bool force_clock_class_origin_unix_epoch;
24 int64_t clock_class_offset_s;
25 int64_t clock_class_offset_ns;
29 int ctf_fs_metadata_init(struct ctf_fs_metadata *metadata);
32 void ctf_fs_metadata_fini(struct ctf_fs_metadata *metadata);
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);
39 FILE *ctf_fs_metadata_open_file(const char *trace_path);
42 bool ctf_metadata_is_packetized(FILE *fp, int *byte_order);
44 #endif /* CTF_FS_METADATA_H */