From 1b8f06504a155e75a9419dfa5c9bf9df1866e01d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 19 Aug 2008 01:41:42 +0000 Subject: Factor out destroy (and object_destroyed) to common interface. git-svn-id: http://svn.drobilla.net/lad/ingen@1443 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/shared/ClashAvoider.cpp | 7 +++++++ src/libs/shared/ClashAvoider.hpp | 2 ++ 2 files changed, 9 insertions(+) (limited to 'src/libs/shared') 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); -- cgit v1.2.1