From 1f1758f4dda0ddaf01c0b1d3a756f9db8ddc979d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 20 Apr 2011 15:27:34 +0000 Subject: Make disconnect take URI parameters (for wildcare URI towards killing disconnect_all). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3183 a436a847-0d15-0410-975c-d299462d15a1 --- src/shared/ClashAvoider.cpp | 6 +++--- src/shared/ClashAvoider.hpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/shared') diff --git a/src/shared/ClashAvoider.cpp b/src/shared/ClashAvoider.cpp index 0e44ef85..f2232554 100644 --- a/src/shared/ClashAvoider.cpp +++ b/src/shared/ClashAvoider.cpp @@ -172,10 +172,10 @@ ClashAvoider::connect(const Raul::Path& src_port_path, } void -ClashAvoider::disconnect(const Raul::Path& src_port_path, - const Raul::Path& dst_port_path) +ClashAvoider::disconnect(const Raul::URI& src, + const Raul::URI& dst) { - _target.disconnect(map_path(src_port_path), map_path(dst_port_path)); + _target.disconnect(map_uri(src), map_uri(dst)); } diff --git a/src/shared/ClashAvoider.hpp b/src/shared/ClashAvoider.hpp index 4322957c..e6f2704a 100644 --- a/src/shared/ClashAvoider.hpp +++ b/src/shared/ClashAvoider.hpp @@ -61,8 +61,8 @@ public: virtual void connect(const Raul::Path& src_port_path, const Raul::Path& dst_port_path); - virtual void disconnect(const Raul::Path& src_port_path, - const Raul::Path& dst_port_path); + virtual void disconnect(const Raul::URI& src, + const Raul::URI& dst); virtual void disconnect_all(const Raul::Path& parent_patch_path, const Raul::Path& path); -- cgit v1.2.1