.gitignore: add some missing files
[babeltrace.git] / src / plugins / text / plugin.c
... / ...
CommitLineData
1/*
2 * SPDX-License-Identifier: MIT
3 *
4 * Copyright 2017 Philippe Proulx <pproulx@efficios.com>
5 */
6
7#include <babeltrace2/babeltrace.h>
8#include "pretty/pretty.h"
9#include "dmesg/dmesg.h"
10#include "details/details.h"
11
12#ifndef BT_BUILT_IN_PLUGINS
13BT_PLUGIN_MODULE();
14#endif
15
16BT_PLUGIN(text);
17BT_PLUGIN_DESCRIPTION("Plain text input and output");
18BT_PLUGIN_AUTHOR("EfficiOS <https://www.efficios.com/>");
19BT_PLUGIN_LICENSE("MIT");
20
21/* pretty sink */
22BT_PLUGIN_SINK_COMPONENT_CLASS(pretty, pretty_consume);
23BT_PLUGIN_SINK_COMPONENT_CLASS_GET_SUPPORTED_MIP_VERSIONS_METHOD(pretty,
24 pretty_supported_mip_versions);
25BT_PLUGIN_SINK_COMPONENT_CLASS_INITIALIZE_METHOD(pretty, pretty_init);
26BT_PLUGIN_SINK_COMPONENT_CLASS_FINALIZE_METHOD(pretty, pretty_finalize);
27BT_PLUGIN_SINK_COMPONENT_CLASS_GRAPH_IS_CONFIGURED_METHOD(pretty,
28 pretty_graph_is_configured);
29BT_PLUGIN_SINK_COMPONENT_CLASS_DESCRIPTION(pretty,
30 "Pretty-print messages (`text` format of Babeltrace 1).");
31BT_PLUGIN_SINK_COMPONENT_CLASS_HELP(pretty,
32 "See the babeltrace2-sink.text.pretty(7) manual page.");
33
34/* dmesg source */
35BT_PLUGIN_SOURCE_COMPONENT_CLASS(dmesg, dmesg_msg_iter_next);
36BT_PLUGIN_SOURCE_COMPONENT_CLASS_DESCRIPTION(dmesg,
37 "Read Linux ring buffer lines (dmesg(1) output) from a file or from standard input.");
38BT_PLUGIN_SOURCE_COMPONENT_CLASS_HELP(dmesg,
39 "See the babeltrace2-source.text.dmesg(7) manual page.");
40BT_PLUGIN_SOURCE_COMPONENT_CLASS_GET_SUPPORTED_MIP_VERSIONS_METHOD(dmesg,
41 dmesg_supported_mip_versions);
42BT_PLUGIN_SOURCE_COMPONENT_CLASS_INITIALIZE_METHOD(dmesg, dmesg_init);
43BT_PLUGIN_SOURCE_COMPONENT_CLASS_FINALIZE_METHOD(dmesg, dmesg_finalize);
44BT_PLUGIN_SOURCE_COMPONENT_CLASS_MESSAGE_ITERATOR_CLASS_INITIALIZE_METHOD(dmesg,
45 dmesg_msg_iter_init);
46BT_PLUGIN_SOURCE_COMPONENT_CLASS_MESSAGE_ITERATOR_CLASS_FINALIZE_METHOD(dmesg,
47 dmesg_msg_iter_finalize);
48BT_PLUGIN_SOURCE_COMPONENT_CLASS_MESSAGE_ITERATOR_CLASS_SEEK_BEGINNING_METHODS(dmesg,
49 dmesg_msg_iter_seek_beginning, dmesg_msg_iter_can_seek_beginning);
50
51/* details sink */
52BT_PLUGIN_SINK_COMPONENT_CLASS(details, details_consume);
53BT_PLUGIN_SINK_COMPONENT_CLASS_GET_SUPPORTED_MIP_VERSIONS_METHOD(details,
54 details_supported_mip_versions);
55BT_PLUGIN_SINK_COMPONENT_CLASS_INITIALIZE_METHOD(details, details_init);
56BT_PLUGIN_SINK_COMPONENT_CLASS_FINALIZE_METHOD(details, details_finalize);
57BT_PLUGIN_SINK_COMPONENT_CLASS_GRAPH_IS_CONFIGURED_METHOD(details,
58 details_graph_is_configured);
59BT_PLUGIN_SINK_COMPONENT_CLASS_DESCRIPTION(details,
60 "Print messages with details.");
61BT_PLUGIN_SINK_COMPONENT_CLASS_HELP(details,
62 "See the babeltrace2-sink.text.details(7) manual page.");
This page took 0.030099 seconds and 5 git commands to generate.