Mercurial > hg > piper-cpp
changeset 132:d04958b5d3ad
Use ListRequest object in api
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Thu, 03 Nov 2016 15:36:48 +0000 |
parents | 183fe1f03980 |
children | 74a7c2a8d6b6 |
files | vamp-client/CapnpRRClient.h vamp-client/Loader.h |
diffstat | 2 files changed, 2 insertions(+), 4 deletions(-) [+] |
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);
--- 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<std::string> from) = 0; + virtual ListResponse listPluginData(const ListRequest &) = 0; virtual LoadResponse loadPlugin(const LoadRequest &) = 0; };