Re-format new C++ files
[babeltrace.git] / src / plugins / ctf / fs-src / metadata.hpp
CommitLineData
e98a2d6e 1/*
0235b0db 2 * SPDX-License-Identifier: MIT
e98a2d6e 3 *
0235b0db 4 * Copyright 2016 Philippe Proulx <pproulx@efficios.com>
e98a2d6e
PP
5 */
6
0235b0db
MJ
7#ifndef CTF_FS_METADATA_H
8#define CTF_FS_METADATA_H
9
c4f23e30 10#include <stdbool.h>
e98a2d6e
PP
11#include <stdio.h>
12#include <glib.h>
91d81473 13#include "common/macros.h"
3fadfbc0 14#include <babeltrace2/babeltrace.h>
e98a2d6e 15
4164020e 16#define CTF_FS_METADATA_FILENAME "metadata"
e98a2d6e 17
97ade20b
JG
18struct ctf_fs_trace;
19struct ctf_fs_metadata;
20
4164020e
SM
21struct 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;
55314f2a
JG
26};
27
e98a2d6e
PP
28BT_HIDDEN
29int ctf_fs_metadata_init(struct ctf_fs_metadata *metadata);
30
31BT_HIDDEN
413bc2c4 32void ctf_fs_metadata_fini(struct ctf_fs_metadata *metadata);
e98a2d6e
PP
33
34BT_HIDDEN
4164020e
SM
35int 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);
e98a2d6e 37
33f93973
PP
38BT_HIDDEN
39FILE *ctf_fs_metadata_open_file(const char *trace_path);
40
41BT_HIDDEN
42bool ctf_metadata_is_packetized(FILE *fp, int *byte_order);
43
e98a2d6e 44#endif /* CTF_FS_METADATA_H */
This page took 0.08215 seconds and 4 git commands to generate.