From 2e7a3b3bc94f8d68475883c845f31ee42cba115c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 27 Nov 2020 20:19:46 +0100 Subject: Remove use of PatchagePort from Driver connection interface --- src/Driver.hpp | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'src/Driver.hpp') diff --git a/src/Driver.hpp b/src/Driver.hpp index b0373af..1144df5 100644 --- a/src/Driver.hpp +++ b/src/Driver.hpp @@ -21,6 +21,8 @@ #include +#include + class PatchagePort; class PatchageCanvas; @@ -50,9 +52,19 @@ public: virtual PatchagePort* create_port_view(Patchage* patchage, const PortID& id) = 0; - virtual bool connect(PatchagePort* src_port, PatchagePort* dst_port) = 0; - - virtual bool disconnect(PatchagePort* src_port, PatchagePort* dst_port) = 0; + virtual bool connect(PortID tail_id, + const std::string& tail_client_name, + const std::string& tail_port_name, + PortID head_id, + const std::string& head_client_name, + const std::string& head_port_name) = 0; + + virtual bool disconnect(PortID tail_id, + const std::string& tail_client_name, + const std::string& tail_port_name, + PortID head_id, + const std::string& head_client_name, + const std::string& head_port_name) = 0; sigc::signal signal_attached; sigc::signal signal_detached; -- cgit v1.2.1