# HG changeset patch # User Chris Cannam # Date 1478187408 0 # Node ID d04958b5d3adaabae4d6b2516ea81cd18879e8cb # Parent 183fe1f039802799ff9604ecab05f8dad997d491 Use ListRequest object in api diff -r 183fe1f03980 -r d04958b5d3ad vamp-client/CapnpRRClient.h --- 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 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(); - ListRequest req; - req.from = from; VampnProto::buildRpcRequest_List(builder, req); ReqId id = getId(); builder.getId().setNumber(id); diff -r 183fe1f03980 -r d04958b5d3ad vamp-client/Loader.h --- a/vamp-client/Loader.h Wed Nov 02 18:39:51 2016 +0000 +++ b/vamp-client/Loader.h Thu Nov 03 15:36:48 2016 +0000 @@ -44,7 +44,7 @@ class Loader { public: - virtual ListResponse listPluginData(std::vector from) = 0; + virtual ListResponse listPluginData(const ListRequest &) = 0; virtual LoadResponse loadPlugin(const LoadRequest &) = 0; };