Move to kernel style SPDX license identifiers
[babeltrace.git] / src / plugins / ctf / plugin.c
CommitLineData
f3bc2010 1/*
0235b0db 2 * SPDX-License-Identifier: MIT
f3bc2010
JG
3 *
4 * Copyright 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com>
5 *
0235b0db 6 * Babeltrace CTF Plug-in Registration Symbols
f3bc2010
JG
7 */
8
3fadfbc0 9#include <babeltrace2/babeltrace.h>
15fe47e0 10
d8866baa 11#include "fs-src/fs.h"
15fe47e0 12#include "fs-sink/fs-sink.h"
14f28187 13#include "lttng-live/lttng-live.h"
f3bc2010 14
52238017
MJ
15#ifndef BT_BUILT_IN_PLUGINS
16BT_PLUGIN_MODULE();
17#endif
18
56a1cced 19/* Initialize plug-in description. */
6ba0b073 20BT_PLUGIN(ctf);
602d20a2
PP
21BT_PLUGIN_DESCRIPTION("CTF input and output");
22BT_PLUGIN_AUTHOR("EfficiOS <https://www.efficios.com/>");
f3bc2010
JG
23BT_PLUGIN_LICENSE("MIT");
24
29a9ac94 25/* ctf.fs source */
41a2b7ae 26BT_PLUGIN_SOURCE_COMPONENT_CLASS(fs, ctf_fs_iterator_next);
d8866baa
PP
27BT_PLUGIN_SOURCE_COMPONENT_CLASS_DESCRIPTION(fs,
28 "Read CTF traces from the file system.");
602d20a2
PP
29BT_PLUGIN_SOURCE_COMPONENT_CLASS_HELP(fs,
30 "See the babeltrace2-source.ctf.fs(7) manual page.");
21a9f056 31BT_PLUGIN_SOURCE_COMPONENT_CLASS_INITIALIZE_METHOD(fs, ctf_fs_init);
a67681c1 32BT_PLUGIN_SOURCE_COMPONENT_CLASS_QUERY_METHOD(fs, ctf_fs_query);
64cadc66 33BT_PLUGIN_SOURCE_COMPONENT_CLASS_FINALIZE_METHOD(fs, ctf_fs_finalize);
8e1fe2a4 34BT_PLUGIN_SOURCE_COMPONENT_CLASS_MESSAGE_ITERATOR_CLASS_INITIALIZE_METHOD(fs,
d3eb6e8f 35 ctf_fs_iterator_init);
8e1fe2a4 36BT_PLUGIN_SOURCE_COMPONENT_CLASS_MESSAGE_ITERATOR_CLASS_FINALIZE_METHOD(fs,
64cadc66 37 ctf_fs_iterator_finalize);
8e1fe2a4 38BT_PLUGIN_SOURCE_COMPONENT_CLASS_MESSAGE_ITERATOR_CLASS_SEEK_BEGINNING_METHODS(fs,
2e1b5615 39 ctf_fs_iterator_seek_beginning, NULL);
d3e4dcd8 40
d8866baa 41/* ctf.fs sink */
15fe47e0 42BT_PLUGIN_SINK_COMPONENT_CLASS(fs, ctf_fs_sink_consume);
21a9f056 43BT_PLUGIN_SINK_COMPONENT_CLASS_INITIALIZE_METHOD(fs, ctf_fs_sink_init);
15fe47e0
PP
44BT_PLUGIN_SINK_COMPONENT_CLASS_FINALIZE_METHOD(fs, ctf_fs_sink_finalize);
45BT_PLUGIN_SINK_COMPONENT_CLASS_GRAPH_IS_CONFIGURED_METHOD(fs,
46 ctf_fs_sink_graph_is_configured);
602d20a2
PP
47BT_PLUGIN_SINK_COMPONENT_CLASS_DESCRIPTION(fs,
48 "Write CTF traces to the file system.");
49BT_PLUGIN_SINK_COMPONENT_CLASS_HELP(fs,
50 "See the babeltrace2-sink.ctf.fs(7) manual page.");
7cdc2bab
MD
51
52/* ctf.lttng-live source */
53BT_PLUGIN_SOURCE_COMPONENT_CLASS_WITH_ID(auto, lttng_live, "lttng-live",
14f28187 54 lttng_live_msg_iter_next);
7cdc2bab 55BT_PLUGIN_SOURCE_COMPONENT_CLASS_DESCRIPTION_WITH_ID(auto, lttng_live,
14f28187 56 "Connect to an LTTng relay daemon and receive CTF streams.");
602d20a2
PP
57BT_PLUGIN_SOURCE_COMPONENT_CLASS_HELP_WITH_ID(auto, lttng_live,
58 "See the babeltrace2-source.ctf.lttng-live(7) manual page.");
21a9f056 59BT_PLUGIN_SOURCE_COMPONENT_CLASS_INITIALIZE_METHOD_WITH_ID(auto, lttng_live,
7cdc2bab
MD
60 lttng_live_component_init);
61BT_PLUGIN_SOURCE_COMPONENT_CLASS_QUERY_METHOD_WITH_ID(auto, lttng_live,
62 lttng_live_query);
63BT_PLUGIN_SOURCE_COMPONENT_CLASS_FINALIZE_METHOD_WITH_ID(auto, lttng_live,
64 lttng_live_component_finalize);
8e1fe2a4 65BT_PLUGIN_SOURCE_COMPONENT_CLASS_MESSAGE_ITERATOR_CLASS_INITIALIZE_METHOD_WITH_ID(auto,
14f28187 66 lttng_live, lttng_live_msg_iter_init);
8e1fe2a4 67BT_PLUGIN_SOURCE_COMPONENT_CLASS_MESSAGE_ITERATOR_CLASS_FINALIZE_METHOD_WITH_ID(auto,
14f28187 68 lttng_live, lttng_live_msg_iter_finalize);
This page took 0.073155 seconds and 4 git commands to generate.