Move initialization of components to init functions
[babeltrace.git] / include / babeltrace / plugin / component-factory.h
index 8b8c81bfd408a72e8c17d565dbfee5d6ec746a1d..350bf72ddafa5dc444100d52a083dd8c4521548f 100644 (file)
@@ -29,6 +29,7 @@
 #include <babeltrace/plugin/source.h>
 #include <babeltrace/plugin/sink.h>
 #include <babeltrace/plugin/filter.h>
+#include <babeltrace/plugin/plugin-system.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -36,23 +37,15 @@ extern "C" {
 
 struct bt_component_factory;
 
-typedef struct bt_component *(*bt_component_init)(
-               struct bt_component *component);
-
-typedef struct bt_component *(*bt_component_fini)(
-               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 init, bt_component_fini 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 init, bt_component_fini 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.040147 seconds and 4 git commands to generate.