Mercurial > hg > piper-cpp
diff vamp-server/simple-server.cpp @ 127:5b113c87b6e6
Add and implement the "from" param for list request. The simple-server implementation is not yet correct.
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Wed, 02 Nov 2016 14:27:42 +0000 |
parents | ea06fae1567c |
children | b37530377d6e |
line wrap: on
line diff
--- a/vamp-server/simple-server.cpp Fri Oct 28 14:31:58 2016 +0100 +++ b/vamp-server/simple-server.cpp Wed Nov 02 14:27:42 2016 +0000 @@ -315,7 +315,7 @@ switch (rr.type) { case RRType::List: - VampnProto::readRpcRequest_List(reader); // type check only + VampnProto::readRpcRequest_List(rr.listRequest, reader); break; case RRType::Load: VampnProto::readRpcRequest_Load(rr.loadRequest, reader); @@ -396,16 +396,21 @@ switch (request.type) { case RRType::List: - response.listResponse = LoaderRequests().listPluginData(); + response.listResponse = + LoaderRequests().listPluginData(request.listRequest); response.success = true; break; case RRType::Load: - response.loadResponse = LoaderRequests().loadPlugin(request.loadRequest); + response.loadResponse = + LoaderRequests().loadPlugin(request.loadRequest); if (response.loadResponse.plugin != nullptr) { mapper.addPlugin(response.loadResponse.plugin); if (debug) { - cerr << "piper-vamp-server " << pid << ": loaded plugin, handle = " << mapper.pluginToHandle(response.loadResponse.plugin) << endl; + cerr << "piper-vamp-server " << pid + << ": loaded plugin, handle = " + << mapper.pluginToHandle(response.loadResponse.plugin) + << endl; } response.success = true; }