diff options
author | Robin Gareus <robin@gareus.org> | 2018-01-30 13:10:00 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-01-30 13:10:00 +0100 |
commit | fa676eb7846616fe1a4380aee8e78073008d58f2 (patch) | |
tree | 662cc8672b08a043bb595cbab7273ecbae848caf /libs/ardour/plugin_manager.cc | |
parent | dc884716959eac4939db598df9db28aa4809431c (diff) |
Add backend-API to reset plugin tags
Diffstat (limited to 'libs/ardour/plugin_manager.cc')
-rw-r--r-- | libs/ardour/plugin_manager.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/ardour/plugin_manager.cc b/libs/ardour/plugin_manager.cc index e1d8110076..37721e6a3a 100644 --- a/libs/ardour/plugin_manager.cc +++ b/libs/ardour/plugin_manager.cc @@ -1496,7 +1496,7 @@ PluginManager::get_tags (const PluginInfoPtr& pi) const } std::string -PluginManager::get_tags_as_string (const PluginInfoPtr& pi) const +PluginManager::get_tags_as_string (PluginInfoPtr const& pi) const { std::string ret; @@ -1601,6 +1601,12 @@ PluginManager::set_tags (PluginType t, string id, string tag, bool factory, bool } } +void +PluginManager::reset_tags (PluginInfoPtr const& pi) +{ + set_tags (pi->type, pi->unique_id, pi->category, true, true); +} + std::string PluginManager::sanitize_tag (const std::string to_sanitize) const { |