ref.h: doc: fix typo
[babeltrace.git] / include / babeltrace / plugin / sink-internal.h
index 1bcd4ba599adf35e670709811ce6ff126c2364f0..5d0588aa30d99b831d0456f866ae05ecfb641b77 100644 (file)
 #include <babeltrace/plugin/component-internal.h>
 #include <babeltrace/plugin/component-class-internal.h>
 #include <babeltrace/plugin/plugin-system.h>
+#include <babeltrace/plugin/input.h>
+
+struct bt_value;
 
 struct bt_component_sink_class {
        struct bt_component_class parent;
-       bt_component_sink_init_cb init;
 };
 
+//typedef uint32_t notification_mask_t;
+
 struct bt_component_sink {
        struct bt_component parent;
-
-       /* Component implementation callbacks */
-       bt_component_sink_handle_notification_cb handle_notification;
+       bt_component_sink_consume_cb consume;
+       bt_component_sink_add_iterator_cb add_iterator;
+       struct component_input input;
+/*     notification_mask_t registered_notifications_mask;*/
 };
 
 /**
  * Allocate a sink component.
  *
  * @param class                        Component class
- * @param name                 Component instance name (will be copied)
+ * @param params               A dictionary of component parameters
  * @returns                    A sink component instance
  */
 BT_HIDDEN
-extern struct bt_component *bt_component_sink_create(
-               struct bt_component_class *class, const char *name);
+struct bt_component *bt_component_sink_create(
+               struct bt_component_class *class, struct bt_value *params);
 
 /**
- * Allocate a sink component class.
+ * Validate a sink component.
  *
- * @param name                 Component instance name (will be copied)
- * @returns                    A sink component class instance
+ * @param component            Sink component instance to validate
+ * @returns                    One of #bt_component_status
  */
-/* FIXME */
 BT_HIDDEN
-extern struct bt_component *bt_component_class_sink_create(
-               struct bt_component_class *class, const char *name);
+enum bt_component_status bt_component_sink_validate(
+               struct bt_component *component);
 
 #endif /* BABELTRACE_PLUGIN_SINK_INTERNAL_H */
This page took 0.023653 seconds and 4 git commands to generate.