diff options
author | Carl Hetherington <carl@carlh.net> | 2010-12-19 23:11:01 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-12-19 23:11:01 +0000 |
commit | 5f4bdb233a53932986e07fca1cd6c87d22c2886f (patch) | |
tree | c9c980115453452dc21931d4337ab1b592f80d95 /libs/ardour/ardour/lv2_plugin.h | |
parent | bb7dbe6d86e08ea0fedf12ce50ca3d395aa212a5 (diff) |
Clean up plugin preset handling a bit.
git-svn-id: svn://localhost/ardour2/branches/3.0@8301 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/lv2_plugin.h')
-rw-r--r-- | libs/ardour/ardour/lv2_plugin.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libs/ardour/ardour/lv2_plugin.h b/libs/ardour/ardour/lv2_plugin.h index c2b9ebc7bb..0920a01e6d 100644 --- a/libs/ardour/ardour/lv2_plugin.h +++ b/libs/ardour/ardour/lv2_plugin.h @@ -66,7 +66,7 @@ class LV2Plugin : public ARDOUR::Plugin bool is_external_ui() const; SLV2Port slv2_port(uint32_t i) { return slv2_plugin_get_port_by_index(_plugin, i); } - const char* port_symbol(uint32_t port); + const char* port_symbol (uint32_t port) const; const LV2_Feature* const* features() { return _features; } @@ -112,12 +112,11 @@ class LV2Plugin : public ARDOUR::Plugin static uint32_t midi_event_type() { return _midi_event_type; } - XMLNode& get_state(); int set_state(const XMLNode& node, int version); bool save_preset (std::string uri); void remove_preset (std::string uri); - bool load_preset (const std::string& uri); - virtual std::vector<Plugin::PresetRecord> get_presets(); + bool load_preset (PresetRecord); + std::string current_preset () const; bool has_editor() const; @@ -167,6 +166,8 @@ class LV2Plugin : public ARDOUR::Plugin void latency_compute_run (); std::string do_save_preset (std::string); void do_remove_preset (std::string); + void find_presets (); + void add_state (XMLNode *) const; }; |