Add ports to the source, filter and sink component interfaces
[deliverable/babeltrace.git] / include / babeltrace / component / component-source.h
index fdb3eb266239818ef04016798da09e0520e5d798..7bea78da22837a379fd0dbc879226509aa08dce6 100644 (file)
@@ -37,15 +37,22 @@ extern "C" {
 struct bt_component;
 struct bt_notification_iterator;
 
-/**
- * Create an iterator on a component instance.
- *
- * @param component    Component instance
- * @returns            Notification iterator instance
- */
-extern
-struct bt_notification_iterator *bt_component_source_create_iterator(
+/* FIXME should return a bt_component_status, same applies for filter and sink. Use uint64_t. */
+extern int bt_component_source_get_output_port_count(
                struct bt_component *component);
+extern struct bt_port *bt_component_source_get_output_port(
+               struct bt_component *component, const char *name);
+extern struct bt_port *bt_component_source_get_output_port_at_index(
+               struct bt_component *component, int index);
+extern struct bt_port *bt_component_source_get_default_output_port(
+               struct bt_component *component);
+
+/* Only allowed during the source's initialization. */
+extern struct bt_port *bt_component_source_add_output_port(
+               struct bt_component *component, const char *name);
+/* Only allowed during the source's initialization. */
+extern enum bt_component_status bt_component_source_remove_output_port(
+               struct bt_component *component, const char *name);
 
 #ifdef __cplusplus
 }
This page took 0.025535 seconds and 5 git commands to generate.