Introduce bt_plugin and bt_component_class
[babeltrace.git] / plugins / sink.c
index 9647f2191bd3c5c28470d953f8e046b8473a4641..bb9e1b0cc83932245279af9b42f35c9a40760609 100644 (file)
@@ -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);
This page took 0.023161 seconds and 4 git commands to generate.