summaryrefslogtreecommitdiffstats
path: root/src/libs/shared
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-08-19 01:41:42 +0000
committerDavid Robillard <d@drobilla.net>2008-08-19 01:41:42 +0000
commit1b8f06504a155e75a9419dfa5c9bf9df1866e01d (patch)
tree8e9ce0ddaee84c76af66b2fa58cd41f73d8434eb /src/libs/shared
parenta7e39b85d7c35ec44c613e593c57ff27de0d06bc (diff)
downloadingen-1b8f06504a155e75a9419dfa5c9bf9df1866e01d.tar.gz
ingen-1b8f06504a155e75a9419dfa5c9bf9df1866e01d.tar.bz2
ingen-1b8f06504a155e75a9419dfa5c9bf9df1866e01d.zip
Factor out destroy (and object_destroyed) to common interface.
git-svn-id: http://svn.drobilla.net/lad/ingen@1443 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/shared')
-rw-r--r--src/libs/shared/ClashAvoider.cpp7
-rw-r--r--src/libs/shared/ClashAvoider.hpp2
2 files changed, 9 insertions, 0 deletions
diff --git a/src/libs/shared/ClashAvoider.cpp b/src/libs/shared/ClashAvoider.cpp
index de4fb4c9..d5d1d245 100644
--- a/src/libs/shared/ClashAvoider.cpp
+++ b/src/libs/shared/ClashAvoider.cpp
@@ -203,5 +203,12 @@ ClashAvoider::set_voice_value(const std::string& port_path,
}
+void
+ClashAvoider::destroy(const std::string& path)
+{
+ _target.destroy(map_path(path));
+}
+
+
} // namespace Shared
} // namespace Ingen
diff --git a/src/libs/shared/ClashAvoider.hpp b/src/libs/shared/ClashAvoider.hpp
index 9f205ff5..f7016e4e 100644
--- a/src/libs/shared/ClashAvoider.hpp
+++ b/src/libs/shared/ClashAvoider.hpp
@@ -80,6 +80,8 @@ public:
void set_voice_value(const std::string& port_path,
uint32_t voice,
const Raul::Atom& value);
+
+ void destroy(const std::string& path);
private:
const Raul::Path map_path(const Raul::Path& in);