X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Ftext%2Fplugin.c;h=dcd5db3b46cbb52fb355edda002676d4b7966057;hb=e2531d3bfa5ee27c4ecca3179a3e2363f859c602;hp=302c079f1b6efdb79009cb00980c0026294e20ce;hpb=8fdb4bc7376937880b41b4726b9afa915d3aa5a8;p=babeltrace.git diff --git a/plugins/text/plugin.c b/plugins/text/plugin.c index 302c079f..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(); @@ -40,3 +41,14 @@ BT_PLUGIN_SINK_COMPONENT_CLASS_PORT_CONNECTED_METHOD(pretty, pretty_port_connected); BT_PLUGIN_SINK_COMPONENT_CLASS_DESCRIPTION(pretty, "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);