X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=plugins%2Ftext%2Fplugin.c;h=58a7f8f75f46172a154fbd77fd45dad478e122ae;hp=ff982630c4c154ee91fcff49d9aa61efd7525f2d;hb=312c056ae3d374b253fa0cfe5ed576c0b0e5e569;hpb=d8866baa7f1ae173ac9d9fac0ad55cb28f883cbf diff --git a/plugins/text/plugin.c b/plugins/text/plugin.c index ff982630..58a7f8f7 100644 --- a/plugins/text/plugin.c +++ b/plugins/text/plugin.c @@ -20,8 +20,13 @@ * SOFTWARE. */ -#include +#include #include "pretty/pretty.h" +#include "dmesg/dmesg.h" + +#ifndef BT_BUILT_IN_PLUGINS +BT_PLUGIN_MODULE(); +#endif BT_PLUGIN(text); BT_PLUGIN_DESCRIPTION("Plain text component classes"); @@ -35,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);