diff options
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r-- | libs/ardour/ardour/port.h | 3 | ||||
-rw-r--r-- | libs/ardour/ardour/port_manager.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/ardour/port.h b/libs/ardour/ardour/port.h index 6a05314843..97f8a4e778 100644 --- a/libs/ardour/ardour/port.h +++ b/libs/ardour/ardour/port.h @@ -55,6 +55,9 @@ public: return _name; } + /** @return Port human readable name */ + std::string pretty_name (bool fallback_to_name = false) const; + int set_name (std::string const &); /** @return flags */ diff --git a/libs/ardour/ardour/port_manager.h b/libs/ardour/ardour/port_manager.h index b36e98fe64..6ced0e7dd1 100644 --- a/libs/ardour/ardour/port_manager.h +++ b/libs/ardour/ardour/port_manager.h @@ -79,6 +79,7 @@ class LIBARDOUR_API PortManager void port_renamed (const std::string&, const std::string&); std::string make_port_name_relative (const std::string& name) const; std::string make_port_name_non_relative (const std::string& name) const; + std::string get_pretty_name_by_name (const std::string& portname) const; bool port_is_mine (const std::string& fullname) const; /* other Port management */ |