Add iterator and source implementations
[babeltrace.git] / include / babeltrace / plugin / component-factory.h
index 8b8c81bfd408a72e8c17d565dbfee5d6ec746a1d..29e2eb5fe643384a1c4c34f56217bcefd7d857bd 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,22 +37,16 @@ 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_init_cb init, bt_component_fini_cb fini,
        bt_component_source_iterator_create_cb iterator_create_cb);
 
 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_init_cb init, bt_component_fini_cb fini,
        bt_component_sink_handle_notification_cb handle_notification_cb);
 
 void bt_component_factory_destroy(struct bt_component_factory *factory);
This page took 0.023751 seconds and 4 git commands to generate.