2 * SPDX-License-Identifier: MIT
4 * Copyright 2019 Philippe Proulx <pproulx@efficios.com>
7 #ifndef BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_H
8 #define BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_H
12 #include <babeltrace2/babeltrace.h>
14 #include "common/macros.h"
18 bt_logging_level log_level;
19 bt_self_component *self_comp;
22 bt_message_iterator *upstream_iter;
24 /* Base output directory path */
25 GString *output_dir_path;
28 * True if the component assumes that it will only write a
29 * single CTF trace (which can contain one or more data
30 * streams). This makes the component write the stream files
31 * directly in the output directory (`output_dir_path` above).
33 bool assume_single_trace;
35 /* True to completely ignore discarded events messages */
36 bool ignore_discarded_events;
38 /* True to completely ignore discarded packets messages */
39 bool ignore_discarded_packets;
42 * True to make the component quiet (nothing printed to the
48 * Hash table of `const bt_trace *` (weak) to
49 * `struct fs_sink_trace *` (owned by hash table).
54 bt_component_class_initialize_method_status
55 ctf_fs_sink_init(bt_self_component_sink *component, bt_self_component_sink_configuration *config,
56 const bt_value *params, void *init_method_data);
58 bt_component_class_sink_consume_method_status
59 ctf_fs_sink_consume(bt_self_component_sink *component);
61 bt_component_class_sink_graph_is_configured_method_status
62 ctf_fs_sink_graph_is_configured(bt_self_component_sink *component);
64 void ctf_fs_sink_finalize(bt_self_component_sink *component);
66 #endif /* BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_H */