summaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-05-12 21:58:35 +0000
committerDavid Robillard <d@drobilla.net>2009-05-12 21:58:35 +0000
commited1032ca54a55c48d2f7c9709b77a4f4da935e99 (patch)
treeebc821e22bcdd9424383174fe9ec2a6a32dbb362 /src/shared
parentc32745b044d88e74526599c5994255a2ea6d2c21 (diff)
downloadingen-ed1032ca54a55c48d2f7c9709b77a4f4da935e99.tar.gz
ingen-ed1032ca54a55c48d2f7c9709b77a4f4da935e99.tar.bz2
ingen-ed1032ca54a55c48d2f7c9709b77a4f4da935e99.zip
Bring EngineInterface and ClientInterface closer together.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1990 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/ClashAvoider.cpp15
-rw-r--r--src/shared/ClashAvoider.hpp5
2 files changed, 20 insertions, 0 deletions
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
@@ -168,6 +168,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);