X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Ftext%2Fplugin.c;h=dcd5db3b46cbb52fb355edda002676d4b7966057;hb=e2531d3bfa5ee27c4ecca3179a3e2363f859c602;hp=563c8d77ad860f49620cebccf0dce34c90dbe89f;hpb=be3c4e36fab9415c72a000036e37442406a02702;p=babeltrace.git diff --git a/plugins/text/plugin.c b/plugins/text/plugin.c index 563c8d77..dcd5db3b 100644 --- a/plugins/text/plugin.c +++ b/plugins/text/plugin.c @@ -22,6 +22,7 @@ #include #include "pretty/pretty.h" +#include "dmesg/dmesg.h" #ifndef BT_BUILT_IN_PLUGINS BT_PLUGIN_MODULE(); @@ -39,4 +40,15 @@ 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_DESCRIPTION(pretty, - "Pretty-printing text output (`text` format of Babeltrace 1)."); + "Pretty-print notifications (`text` format of Babeltrace 1)."); + +/* dmesg source */ +BT_PLUGIN_SOURCE_COMPONENT_CLASS(dmesg, dmesg_notif_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_NOTIFICATION_ITERATOR_INIT_METHOD(dmesg, + dmesg_notif_iter_init); +BT_PLUGIN_SOURCE_COMPONENT_CLASS_NOTIFICATION_ITERATOR_FINALIZE_METHOD(dmesg, + dmesg_notif_iter_finalize);