X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Fmuxer%2Fmuxer.c;h=04171d75525f58f41b14716eb1c2bd42db8e9635;hb=d3e4dcd8e7a601e0aa063455147f29fbe051582b;hp=2700be6ed5671e5613842712a1d28e48d6f1012b;hpb=d1b057f5b2954339b0b48fdc5973ec59a641f5a9;p=babeltrace.git diff --git a/plugins/muxer/muxer.c b/plugins/muxer/muxer.c index 2700be6e..04171d75 100644 --- a/plugins/muxer/muxer.c +++ b/plugins/muxer/muxer.c @@ -72,12 +72,6 @@ enum bt_component_status muxer_component_init( goto end; } - ret = bt_component_set_destroy_cb(component, - destroy_muxer); - if (ret != BT_COMPONENT_STATUS_OK) { - goto error; - } - ret = bt_component_set_private_data(component, muxer); if (ret != BT_COMPONENT_STATUS_OK) { goto error; @@ -89,12 +83,20 @@ error: return ret; } +enum bt_component_status muxer_init_iterator( + struct bt_component *component, + struct bt_notification_iterator *iter) +{ + return BT_COMPONENT_STATUS_OK; +} + /* Initialize plug-in entry points. */ BT_PLUGIN(muxer); BT_PLUGIN_DESCRIPTION("Babeltrace Trace Muxer Plug-In."); BT_PLUGIN_AUTHOR("Jérémie Galarneau"); BT_PLUGIN_LICENSE("MIT"); -BT_PLUGIN_COMPONENT_CLASS(BT_COMPONENT_TYPE_FILTER, muxer, - muxer_component_init); -BT_PLUGIN_COMPONENT_CLASS_DESCRIPTION(BT_COMPONENT_TYPE_FILTER, muxer, +BT_PLUGIN_FILTER_COMPONENT_CLASS(muxer, muxer_init_iterator); +BT_PLUGIN_FILTER_COMPONENT_CLASS_DESCRIPTION(muxer, "Time-correlate multiple traces."); +BT_PLUGIN_FILTER_COMPONENT_CLASS_INIT_METHOD(muxer, muxer_component_init); +BT_PLUGIN_FILTER_COMPONENT_CLASS_DESTROY_METHOD(muxer, destroy_muxer);