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>
16 bt_logging_level log_level = BT_LOGGING_LEVEL_NONE;
17 bt_self_component *self_comp = nullptr;
20 bt_message_iterator *upstream_iter = nullptr;
22 /* Base output directory path */
23 GString *output_dir_path = nullptr;
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).
31 bool assume_single_trace = false;
33 /* True to completely ignore discarded events messages */
34 bool ignore_discarded_events = false;
36 /* True to completely ignore discarded packets messages */
37 bool ignore_discarded_packets = false;
40 * True to make the component quiet (nothing printed to the
46 * Hash table of `const bt_trace *` (weak) to
47 * `struct fs_sink_trace *` (owned by hash table).
49 GHashTable *traces = nullptr;
52 bt_component_class_initialize_method_status
53 ctf_fs_sink_init(bt_self_component_sink *component, bt_self_component_sink_configuration *config,
54 const bt_value *params, void *init_method_data);
56 bt_component_class_sink_consume_method_status
57 ctf_fs_sink_consume(bt_self_component_sink *component);
59 bt_component_class_sink_graph_is_configured_method_status
60 ctf_fs_sink_graph_is_configured(bt_self_component_sink *component);
62 void ctf_fs_sink_finalize(bt_self_component_sink *component);
64 #endif /* BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_H */