Move initialization of components to init functions
[babeltrace.git] / include / babeltrace / plugin / component-factory.h
index 06c613799a99f69c494e5c3b76757b8d4f477b40..350bf72ddafa5dc444100d52a083dd8c4521548f 100644 (file)
@@ -37,23 +37,15 @@ extern "C" {
 
 struct bt_component_factory;
 
-typedef struct bt_component *(*bt_component_init_cb)(
-               struct bt_component *component);
-
-typedef struct bt_component *(*bt_component_fini_cb)(
-               struct bt_component *component);
-
 enum bt_component_status bt_component_factory_create(const char *path);
 
 enum bt_component_status bt_component_factory_register_source_component_class(
        struct bt_component_factory *factory, const char *name,
-       bt_component_init_cb init, bt_component_fini_cb fini,
-       bt_component_source_iterator_create_cb iterator_create_cb);
+       bt_component_source_init_cb init);
 
 enum bt_component_status bt_component_factory_register_sink_component_class(
        struct bt_component_factory *factory, const char *name,
-       bt_component_init_cb init, bt_component_fini_cb fini,
-       bt_component_sink_handle_notification_cb handle_notification_cb);
+       bt_component_sink_init_cb init);
 
 void bt_component_factory_destroy(struct bt_component_factory *factory);
 
This page took 0.022957 seconds and 4 git commands to generate.