# HG changeset patch # User Chris Cannam # Date 1478187497 0 # Node ID 58dd6a6fe4142917ff88fe913512906c14d581d0 # Parent 8f076d02569a3ba22de1d9f3c7b697b8871b6afb Update to use listargs variant of Piper stuff (so that the plugin winnowing feature from the penultimate commit actually works) diff -r 8f076d02569a -r 58dd6a6fe414 plugin/PiperVampPluginFactory.cpp --- a/plugin/PiperVampPluginFactory.cpp Thu Nov 03 14:57:00 2016 +0000 +++ b/plugin/PiperVampPluginFactory.cpp Thu Nov 03 15:38:17 2016 +0000 @@ -197,10 +197,14 @@ } piper_vamp::client::CapnpRRClient client(&transport); - piper_vamp::ListResponse lr; + + piper_vamp::ListRequest req; + req.from = from; + + piper_vamp::ListResponse resp; try { - lr = client.listPluginData(); + resp = client.listPluginData(req); } catch (piper_vamp::client::ServerCrashed) { errorMessage = QObject::tr ("External plugin host exited unexpectedly while listing plugins"); @@ -212,9 +216,9 @@ } SVDEBUG << "PiperVampPluginFactory: server \"" << executable << "\" lists " - << lr.available.size() << " plugin(s)" << endl; + << resp.available.size() << " plugin(s)" << endl; - for (const auto &pd: lr.available) { + for (const auto &pd: resp.available) { QString identifier = QString("vamp:") + QString::fromStdString(pd.pluginKey);