diff options
author | David Robillard <d@drobilla.net> | 2011-04-20 15:27:34 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-04-20 15:27:34 +0000 |
commit | 1f1758f4dda0ddaf01c0b1d3a756f9db8ddc979d (patch) | |
tree | bf97929a31ac38acc158aef045921ad1954acc9d /src/client/ClientStore.cpp | |
parent | be78a679a950f1d1b07f8f16c358c33ac1ccda66 (diff) | |
download | ingen-1f1758f4dda0ddaf01c0b1d3a756f9db8ddc979d.tar.gz ingen-1f1758f4dda0ddaf01c0b1d3a756f9db8ddc979d.tar.bz2 ingen-1f1758f4dda0ddaf01c0b1d3a756f9db8ddc979d.zip |
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
Diffstat (limited to 'src/client/ClientStore.cpp')
-rw-r--r-- | src/client/ClientStore.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/client/ClientStore.cpp b/src/client/ClientStore.cpp index be7d4186..48fa0d1e 100644 --- a/src/client/ClientStore.cpp +++ b/src/client/ClientStore.cpp @@ -459,9 +459,17 @@ ClientStore::connect(const Path& src_path, } void -ClientStore::disconnect(const Path& src_path, - const Path& dst_path) +ClientStore::disconnect(const URI& src, + const URI& dst) { + if (!Path::is_path(src) && !Path::is_path(dst)) { + std::cerr << "Bad disconnect notification " << src << " => " << dst << std::endl; + return; + } + + const Path src_path(src.str()); + const Path dst_path(dst.str()); + SharedPtr<PortModel> src_port = PtrCast<PortModel>(object(src_path)); SharedPtr<PortModel> dst_port = PtrCast<PortModel>(object(dst_path)); |