provide mechanism for "drop all slaves" for VCA master
[ardour.git] / libs / ardour / windows_vst_plugin.cc
index 46097e7feb10683f4958fda12c32a8ffba3befc9..9dec5ea7724be2c029148398af3fde99003c7680 100644 (file)
@@ -95,7 +95,7 @@ WindowsVSTPluginInfo::load (Session& session)
 }
 
 std::vector<Plugin::PresetRecord>
-WindowsVSTPluginInfo::get_presets(Session&)
+WindowsVSTPluginInfo::get_presets (bool user_only) const
 {
        std::vector<Plugin::PresetRecord> p;
 #ifndef NO_PLUGIN_STATE
@@ -103,7 +103,9 @@ WindowsVSTPluginInfo::get_presets(Session&)
                return p;
        }
 
-       // TODO cache and load factory-preset names
+       if (!user_only) {
+               // TODO cache and load factory-preset names
+       }
 
        /* user presets */
        XMLTree* t = new XMLTree;
@@ -113,8 +115,8 @@ WindowsVSTPluginInfo::get_presets(Session&)
                if (t->read ()) {
                        XMLNode* root = t->root ();
                        for (XMLNodeList::const_iterator i = root->children().begin(); i != root->children().end(); ++i) {
-                               XMLProperty* uri = (*i)->property (X_("uri"));
-                               XMLProperty* label = (*i)->property (X_("label"));
+                               XMLProperty const * uri = (*i)->property (X_("uri"));
+                               XMLProperty const * label = (*i)->property (X_("label"));
                                p.push_back (Plugin::PresetRecord (uri->value(), label->value(), true));
                        }
                }