summaryrefslogtreecommitdiffstats
path: root/ingen/ClashAvoider.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'ingen/ClashAvoider.hpp')
-rw-r--r--ingen/ClashAvoider.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/ingen/ClashAvoider.hpp b/ingen/ClashAvoider.hpp
index 23656349..6032351a 100644
--- a/ingen/ClashAvoider.hpp
+++ b/ingen/ClashAvoider.hpp
@@ -41,6 +41,16 @@ public:
bool exists(const Raul::Path& path) const;
+ /** Adjust a new label by increasing the numeric suffix if any.
+ *
+ * @param old_path The old path that was mapped with `map_path()`
+ * @param new_path The new path that `old_path` was mapped to
+ * @param name The old name.
+ */
+ static std::string adjust_name(const Raul::Path& old_path,
+ const Raul::Path& new_path,
+ std::string name);
+
private:
typedef std::map<Raul::Path, unsigned> Offsets;
typedef std::map<Raul::Path, Raul::Path> SymbolMap;