summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/plugin.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-12-06 02:41:46 +0000
committerCarl Hetherington <carl@carlh.net>2010-12-06 02:41:46 +0000
commit5546fa38fc0ba2d33288914d4fb40fe4d3d837bf (patch)
tree4bf6e43baf9814e39cdd51784441f42887a05c2c /libs/ardour/ardour/plugin.h
parent433196a83ac5500291ab2dbadf15a25b1b74335d (diff)
Manage attempts to save plugin presets with the same name. Helps with #2662.
git-svn-id: svn://localhost/ardour2/branches/3.0@8191 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/plugin.h')
-rw-r--r--libs/ardour/ardour/plugin.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/ardour/ardour/plugin.h b/libs/ardour/ardour/plugin.h
index bab2b71f31..4a2153c6e0 100644
--- a/libs/ardour/ardour/plugin.h
+++ b/libs/ardour/ardour/plugin.h
@@ -129,6 +129,7 @@ class Plugin : public PBD::StatefulDestructible, public Latent
virtual bool parameter_is_output(uint32_t) const = 0;
virtual bool save_preset (std::string) = 0;
+ virtual void remove_preset (std::string) = 0;
virtual bool load_preset (const std::string& uri);
struct PresetRecord {
@@ -187,6 +188,10 @@ class Plugin : public PBD::StatefulDestructible, public Latent
virtual void set_parameter (uint32_t which, float val) = 0;
bool save_preset (std::string, std::string /* vst, ladspa etc. */);
+ void remove_preset (std::string, std::string);
+ bool write_preset_file (std::string, std::string);
+ std::string preset_source (std::string, std::string) const;
+ std::string preset_envvar () const;
ARDOUR::AudioEngine& _engine;
ARDOUR::Session& _session;