comparison vamp-client/CapnpRRClient.h @ 131:183fe1f03980

Update client to support list from
author Chris Cannam <c.cannam@qmul.ac.uk>
date Wed, 02 Nov 2016 18:39:51 +0000
parents 2004ec2b653e
children d04958b5d3ad
comparison
equal deleted inserted replaced
130:b37530377d6e 131:183fe1f03980
97 //!!! sort out the api here 97 //!!! sort out the api here
98 98
99 // Loader methods: 99 // Loader methods:
100 100
101 ListResponse 101 ListResponse
102 listPluginData() override { 102 listPluginData(std::vector<std::string> from) override {
103 103
104 if (!m_transport->isOK()) { 104 if (!m_transport->isOK()) {
105 throw std::runtime_error("Piper server crashed or failed to start"); 105 throw std::runtime_error("Piper server crashed or failed to start");
106 } 106 }
107 107
108 capnp::MallocMessageBuilder message; 108 capnp::MallocMessageBuilder message;
109 piper::RpcRequest::Builder builder = message.initRoot<piper::RpcRequest>(); 109 piper::RpcRequest::Builder builder = message.initRoot<piper::RpcRequest>();
110 VampnProto::buildRpcRequest_List(builder); 110 ListRequest req;
111 req.from = from;
112 VampnProto::buildRpcRequest_List(builder, req);
111 ReqId id = getId(); 113 ReqId id = getId();
112 builder.getId().setNumber(id); 114 builder.getId().setNumber(id);
113 115
114 auto karr = call(message, true); 116 auto karr = call(message, true);
115 117