Introduce bt_plugin and bt_component_class
[babeltrace.git] / include / babeltrace / plugin / sink-internal.h
index b33333871ed5344c3b69597bd3528ed0b64c5341..f7b7bc4cbdfc0be76b4ae852e7f7a38d1fa85595 100644 (file)
 
 #include <babeltrace/babeltrace-internal.h>
 #include <babeltrace/plugin/component-internal.h>
+#include <babeltrace/plugin/component-class-internal.h>
 #include <babeltrace/plugin/plugin-system.h>
 
+struct bt_component_sink_class {
+       struct bt_component_class parent;
+       bt_component_sink_init_cb init;
+};
+
 struct bt_component_sink {
        struct bt_component parent;
 
@@ -41,10 +47,12 @@ struct bt_component_sink {
 /**
  * Allocate a sink component.
  *
+ * @param class                        Component class
  * @param name                 Component instance name (will be copied)
  * @returns                    A sink component instance
  */
 BT_HIDDEN
-extern struct bt_component *bt_component_sink_create(const char *name);
+extern struct bt_component *bt_component_sink_create(
+               struct bt_component_class *class, const char *name);
 
 #endif /* BABELTRACE_PLUGIN_SINK_INTERNAL_H */
This page took 0.022701 seconds and 4 git commands to generate.