X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Ftext%2Fplugin.c;h=bdd2789cccf837f1520e8e9f1d63fa751d05cf9e;hb=5badd463e184894a3bfd5b8db257efc6f92c6374;hp=302c079f1b6efdb79009cb00980c0026294e20ce;hpb=358340ece4f5ce33eee2c763c86a18383e0ccc85;p=babeltrace.git diff --git a/plugins/text/plugin.c b/plugins/text/plugin.c index 302c079f..bdd2789c 100644 --- a/plugins/text/plugin.c +++ b/plugins/text/plugin.c @@ -20,8 +20,9 @@ * SOFTWARE. */ -#include +#include #include "pretty/pretty.h" +#include "dmesg/dmesg.h" #ifndef BT_BUILT_IN_PLUGINS BT_PLUGIN_MODULE(); @@ -36,7 +37,22 @@ BT_PLUGIN_LICENSE("MIT"); BT_PLUGIN_SINK_COMPONENT_CLASS(pretty, pretty_consume); BT_PLUGIN_SINK_COMPONENT_CLASS_INIT_METHOD(pretty, pretty_init); BT_PLUGIN_SINK_COMPONENT_CLASS_FINALIZE_METHOD(pretty, pretty_finalize); -BT_PLUGIN_SINK_COMPONENT_CLASS_PORT_CONNECTED_METHOD(pretty, - pretty_port_connected); +BT_PLUGIN_SINK_COMPONENT_CLASS_GRAPH_IS_CONFIGURED_METHOD(pretty, + pretty_graph_is_configured); BT_PLUGIN_SINK_COMPONENT_CLASS_DESCRIPTION(pretty, - "Pretty-print notifications (`text` format of Babeltrace 1)."); + "Pretty-print messages (`text` format of Babeltrace 1)."); + +/* dmesg source */ +BT_PLUGIN_SOURCE_COMPONENT_CLASS(dmesg, dmesg_msg_iter_next); +BT_PLUGIN_SOURCE_COMPONENT_CLASS_DESCRIPTION(dmesg, + "Read a dmesg output from a file or from standard input."); +BT_PLUGIN_SOURCE_COMPONENT_CLASS_INIT_METHOD(dmesg, dmesg_init); +BT_PLUGIN_SOURCE_COMPONENT_CLASS_FINALIZE_METHOD(dmesg, dmesg_finalize); +BT_PLUGIN_SOURCE_COMPONENT_CLASS_MESSAGE_ITERATOR_INIT_METHOD(dmesg, + dmesg_msg_iter_init); +BT_PLUGIN_SOURCE_COMPONENT_CLASS_MESSAGE_ITERATOR_FINALIZE_METHOD(dmesg, + dmesg_msg_iter_finalize); +BT_PLUGIN_SOURCE_COMPONENT_CLASS_MESSAGE_ITERATOR_SEEK_BEGINNING_METHOD(dmesg, + dmesg_msg_iter_seek_beginning); +BT_PLUGIN_SOURCE_COMPONENT_CLASS_MESSAGE_ITERATOR_CAN_SEEK_BEGINNING_METHOD(dmesg, + dmesg_msg_iter_can_seek_beginning);