From ed1032ca54a55c48d2f7c9709b77a4f4da935e99 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 12 May 2009 21:58:35 +0000 Subject: Bring EngineInterface and ClientInterface closer together. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1990 a436a847-0d15-0410-975c-d299462d15a1 --- src/shared/ClashAvoider.cpp | 15 +++++++++++++++ src/shared/ClashAvoider.hpp | 5 +++++ 2 files changed, 20 insertions(+) (limited to 'src/shared') diff --git a/src/shared/ClashAvoider.cpp b/src/shared/ClashAvoider.cpp index 41da3eeb..39338e99 100644 --- a/src/shared/ClashAvoider.cpp +++ b/src/shared/ClashAvoider.cpp @@ -167,6 +167,14 @@ ClashAvoider::new_port(const std::string& path, } +void +ClashAvoider::rename(const std::string& old_path, + const std::string& new_path) +{ + _target.rename(map_path(old_path), map_path(new_path)); +} + + void ClashAvoider::connect(const std::string& src_port_path, const std::string& dst_port_path) @@ -225,5 +233,12 @@ ClashAvoider::destroy(const std::string& path) } +void +ClashAvoider::clear_patch(const std::string& path) +{ + _target.clear_patch(map_path(path)); +} + + } // namespace Shared } // namespace Ingen diff --git a/src/shared/ClashAvoider.hpp b/src/shared/ClashAvoider.hpp index 1ddee704..3d154e8d 100644 --- a/src/shared/ClashAvoider.hpp +++ b/src/shared/ClashAvoider.hpp @@ -61,6 +61,9 @@ public: uint32_t index, bool is_output); + void rename(const std::string& old_path, + const std::string& new_path); + void connect(const std::string& src_port_path, const std::string& dst_port_path); @@ -83,6 +86,8 @@ public: const Raul::Atom& value); void destroy(const std::string& path); + + void clear_patch(const std::string& path); private: const std::string map_path(const Raul::Path& in); -- cgit v1.2.1