Add ports to the source, filter and sink component interfaces
[babeltrace.git] / include / babeltrace / component / component-filter.h
index cba61f68ff3a5bc132b84021beabda4fefed1f93..32863b9f16b9e3ef98cc4b1a0649a85cce322f55 100644 (file)
@@ -34,6 +34,7 @@
 extern "C" {
 #endif
 
+struct bt_port;
 struct bt_component;
 struct bt_notification_iterator;
 
@@ -63,24 +64,23 @@ extern
 struct bt_notification_iterator *bt_component_filter_create_notification_iterator_with_init_method_data(
         struct bt_component *component, void *init_method_data);
 
-/* Defaults to 1. */
-extern enum bt_component_status
-bt_component_filter_set_minimum_input_count(struct bt_component *filter,
-        unsigned int minimum);
-
-/* Defaults to 1. */
-extern enum bt_component_status
-bt_component_filter_set_maximum_input_count(struct bt_component *filter,
-        unsigned int maximum);
-
-extern enum bt_component_status
-bt_component_filter_get_input_count(struct bt_component *filter,
-        unsigned int *count);
+extern int bt_component_filter_get_input_port_count(
+               struct bt_component *component);
+extern struct bt_port *bt_component_filter_get_input_port(
+               struct bt_component *component, const char *name);
+extern struct bt_port *bt_component_filter_get_input_port_at_index(
+               struct bt_component *component, int index);
+extern struct bt_port *bt_component_filter_get_default_input_port(
+               struct bt_component *component);
 
-/* May return NULL after an interator has reached its end. */
-extern enum bt_component_status
-bt_component_filter_get_input_iterator(struct bt_component *filter,
-        unsigned int input, struct bt_notification_iterator **iterator);
+extern int bt_component_filter_get_output_port_count(
+               struct bt_component *component);
+extern struct bt_port *bt_component_filter_get_output_port(
+               struct bt_component *component, const char *name);
+extern struct bt_port *bt_component_filter_get_output_port_at_index(
+               struct bt_component *component, int index);
+extern struct bt_port *bt_component_filter_get_default_output_port(
+               struct bt_component *component);
 
 #ifdef __cplusplus
 }
This page took 0.024123 seconds and 4 git commands to generate.