Allow a component to remove a port and any user to disconnect one
[babeltrace.git] / include / babeltrace / component / connection-internal.h
index d2f51ca0252ffda4276558e3b7f008714b8594ef..74144cd5d3eb4b7c582950e8528085fdf817dd61 100644 (file)
@@ -44,13 +44,18 @@ struct bt_connection {
         * components.
         */
        /* Downstream port. */
-       struct bt_port *input_port;
+       struct bt_port *downstream_port;
        /* Upstream port. */
-       struct bt_port *output_port;
+       struct bt_port *upstream_port;
 };
 
 BT_HIDDEN
 struct bt_connection *bt_connection_create(struct bt_graph *graph,
-               struct bt_port *upstream, struct bt_port *downstream);
+               struct bt_port *upstream_port,
+               struct bt_port *downstream_port);
+
+BT_HIDDEN
+void bt_connection_disconnect_ports(struct bt_connection *conn,
+               struct bt_component *comp);
 
 #endif /* BABELTRACE_COMPONENT_CONNECTION_INTERNAL_H */
This page took 0.027073 seconds and 4 git commands to generate.