X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Fsource.c;h=38fc3110801662974223dba48a4609e18e621490;hb=fb2dcc52d2d351c4fb46878414f51d2cdecdfc6f;hp=094cab24cb2c1ac39de06b3635ffd263190f9bcf;hpb=732995546409a6d6c279acbcd44d3dbc4a1a3195;p=babeltrace.git diff --git a/plugins/source.c b/plugins/source.c index 094cab24..38fc3110 100644 --- a/plugins/source.c +++ b/plugins/source.c @@ -46,7 +46,8 @@ void bt_component_source_destroy(struct bt_component *component) } BT_HIDDEN -struct bt_component *bt_component_source_create(const char *name) +struct bt_component *bt_component_source_create( + struct bt_component_class *class, const char *name) { struct bt_component_source *source = NULL; enum bt_component_status ret; @@ -55,8 +56,8 @@ struct bt_component *bt_component_source_create(const char *name) goto end; } - ret = bt_component_init(&source->parent, name, - BT_COMPONENT_TYPE_SOURCE, bt_component_source_destroy); + ret = bt_component_init(&source->parent, class, name, + bt_component_source_destroy); if (ret != BT_COMPONENT_STATUS_OK) { g_free(source); source = NULL;