diff vamp-client/CapnpRRClient.h @ 132:d04958b5d3ad

Use ListRequest object in api
author Chris Cannam <c.cannam@qmul.ac.uk>
date Thu, 03 Nov 2016 15:36:48 +0000 (2016-11-03)
parents 183fe1f03980
children 3dcf0394971d
line wrap: on
line diff
--- a/vamp-client/CapnpRRClient.h	Wed Nov 02 18:39:51 2016 +0000
+++ b/vamp-client/CapnpRRClient.h	Thu Nov 03 15:36:48 2016 +0000
@@ -99,7 +99,7 @@
     // Loader methods:
 
     ListResponse
-    listPluginData(std::vector<std::string> from) override {
+    listPluginData(const ListRequest &req) override {
 
         if (!m_transport->isOK()) {
             throw std::runtime_error("Piper server crashed or failed to start");
@@ -107,8 +107,6 @@
 
         capnp::MallocMessageBuilder message;
         piper::RpcRequest::Builder builder = message.initRoot<piper::RpcRequest>();
-        ListRequest req;
-        req.from = from;
         VampnProto::buildRpcRequest_List(builder, req);
         ReqId id = getId();
         builder.getId().setNumber(id);