Remove some unused includes in C++ files
[babeltrace.git] / src / plugins / ctf / fs-sink / fs-sink.hpp
CommitLineData
15fe47e0 1/*
0235b0db 2 * SPDX-License-Identifier: MIT
15fe47e0 3 *
0235b0db 4 * Copyright 2019 Philippe Proulx <pproulx@efficios.com>
15fe47e0
PP
5 */
6
0235b0db
MJ
7#ifndef BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_H
8#define BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_H
9
15fe47e0 10#include <glib.h>
c802cacb
SM
11
12#include <babeltrace2/babeltrace.h>
13
4164020e
SM
14struct fs_sink_comp
15{
16 bt_logging_level log_level;
17 bt_self_component *self_comp;
15fe47e0 18
4164020e
SM
19 /* Owned by this */
20 bt_message_iterator *upstream_iter;
15fe47e0 21
4164020e
SM
22 /* Base output directory path */
23 GString *output_dir_path;
15fe47e0 24
4164020e
SM
25 /*
26 * True if the component assumes that it will only write a
27 * single CTF trace (which can contain one or more data
28 * streams). This makes the component write the stream files
29 * directly in the output directory (`output_dir_path` above).
30 */
31 bool assume_single_trace;
491c35cc 32
4164020e
SM
33 /* True to completely ignore discarded events messages */
34 bool ignore_discarded_events;
491c35cc 35
4164020e
SM
36 /* True to completely ignore discarded packets messages */
37 bool ignore_discarded_packets;
491c35cc 38
4164020e
SM
39 /*
40 * True to make the component quiet (nothing printed to the
41 * standard output).
42 */
43 bool quiet;
15fe47e0 44
4164020e
SM
45 /*
46 * Hash table of `const bt_trace *` (weak) to
47 * `struct fs_sink_trace *` (owned by hash table).
48 */
49 GHashTable *traces;
15fe47e0
PP
50};
51
4164020e
SM
52bt_component_class_initialize_method_status
53ctf_fs_sink_init(bt_self_component_sink *component, bt_self_component_sink_configuration *config,
54 const bt_value *params, void *init_method_data);
15fe47e0 55
4164020e
SM
56bt_component_class_sink_consume_method_status
57ctf_fs_sink_consume(bt_self_component_sink *component);
15fe47e0 58
4164020e
SM
59bt_component_class_sink_graph_is_configured_method_status
60ctf_fs_sink_graph_is_configured(bt_self_component_sink *component);
15fe47e0 61
15fe47e0
PP
62void ctf_fs_sink_finalize(bt_self_component_sink *component);
63
64#endif /* BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_H */
This page took 0.070249 seconds and 4 git commands to generate.