X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Fsink.c;h=bb9e1b0cc83932245279af9b42f35c9a40760609;hb=fb2dcc52d2d351c4fb46878414f51d2cdecdfc6f;hp=9647f2191bd3c5c28470d953f8e046b8473a4641;hpb=732995546409a6d6c279acbcd44d3dbc4a1a3195;p=babeltrace.git diff --git a/plugins/sink.c b/plugins/sink.c index 9647f219..bb9e1b0c 100644 --- a/plugins/sink.c +++ b/plugins/sink.c @@ -44,7 +44,8 @@ void bt_component_sink_destroy(struct bt_component *component) } BT_HIDDEN -struct bt_component *bt_component_sink_create(const char *name) +struct bt_component *bt_component_sink_create( + struct bt_component_class *class, const char *name) { struct bt_component_sink *sink = NULL; enum bt_component_status ret; @@ -54,7 +55,7 @@ struct bt_component *bt_component_sink_create(const char *name) goto end; } - ret = bt_component_init(&sink->parent, name, BT_COMPONENT_TYPE_SINK, + ret = bt_component_init(&sink->parent, class, name, bt_component_sink_destroy); if (ret != BT_COMPONENT_STATUS_OK) { g_free(sink);