summaryrefslogtreecommitdiffstats
path: root/src/Driver.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Driver.hpp')
-rw-r--r--src/Driver.hpp18
1 files changed, 15 insertions, 3 deletions
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 <sigc++/sigc++.h>
+#include <string>
+
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<void> signal_attached;
sigc::signal<void> signal_detached;