changeset 1248:58dd6a6fe414 piper

Update to use listargs variant of Piper stuff (so that the plugin winnowing feature from the penultimate commit actually works)
author Chris Cannam
date Thu, 03 Nov 2016 15:38:17 +0000
parents 8f076d02569a
children d45a16c232bd
files plugin/PiperVampPluginFactory.cpp
diffstat 1 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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);