Sinks own their input iterators
[babeltrace.git] / include / babeltrace / plugin / sink.h
index ae563f676e39f3bec83f890a1dcd95419ab04157..3ea164586a4aa234640c2261b798196c158a58dd 100644 (file)
@@ -37,15 +37,24 @@ struct bt_component;
 struct bt_notification;
 
 /**
- * Hand-off a notification to a sink component.
+ * Add a notification iterator to a sink component.
  *
  * @param component    Component instance
- * @param notification Notification instance to handle
+ * @param iterator     Notification iterator to add
  * @returns            One of #bt_component_status values
  */
-enum bt_component_status bt_component_sink_handle_notification(
+enum bt_component_status bt_component_sink_add_iterator(
                struct bt_component *component,
-               struct bt_notification *notification);
+               struct bt_notification_iterator *iterator);
+
+/**
+ * Process one event, consuming from sources as needed.
+ *
+ * @param component    Component instance
+ * @returns            One of #bt_component_status values
+ */
+enum bt_component_status bt_component_sink_consume(
+               struct bt_component *component);
 
 #ifdef __cplusplus
 }
This page took 0.023925 seconds and 4 git commands to generate.