summaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
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);