Initialize component class init callback
[babeltrace.git] / lib / plugin-system / component-class.c
index e0e2e0bf2e4e9cd8c42ae8297909277279b85a6f..9f5ccb0634fdf6fdf9c3a116fbe3b5b0bb033e56 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) {
This page took 0.023543 seconds and 4 git commands to generate.