*/
#include <babeltrace/component/connection.h>
+#include <babeltrace/component/private-connection.h>
#include <babeltrace/object-internal.h>
struct bt_graph;
* 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;
};
+static inline
+struct bt_connection *bt_connection_from_private(
+ struct bt_private_connection *private_connection)
+{
+ return (void *) private_connection;
+}
+
+static inline
+struct bt_private_connection *bt_private_connection_from_connection(
+ struct bt_connection *connection)
+{
+ return (void *) connection;
+}
+
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 */