Add bt_component_sink_register_notification_type
[babeltrace.git] / lib / plugin-system / component-class.c
index e0e2e0bf2e4e9cd8c42ae8297909277279b85a6f..70dd638965dc4576b7622846635266685fa76ac9 100644 (file)
@@ -52,7 +52,8 @@ void bt_component_class_destroy(struct bt_object *obj)
 BT_HIDDEN
 struct bt_component_class *bt_component_class_create(
                enum bt_component_type type, const char *name,
-               const char *description, struct bt_plugin *plugin)
+               const char *description, bt_component_init_cb init,
+               struct bt_plugin *plugin)
 {
        struct bt_component_class *class;
 
@@ -63,6 +64,7 @@ struct bt_component_class *bt_component_class_create(
 
        bt_object_init(class, bt_component_class_destroy);
        class->type = type;
+       class->init = init;
        class->name = g_string_new(name);
        class->description = g_string_new(description);
        if (!class->name || !class->description) {
@@ -100,4 +102,3 @@ const char *bt_component_class_get_description(
 {
        return component_class ? component_class->description->str : NULL;
 }
-
This page took 0.024696 seconds and 4 git commands to generate.