Mercurial > hg > piper-cpp
comparison vamp-server/convert.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 | 6b11ca6bb0a3 |
children | b37530377d6e |
comparison
equal
deleted
inserted
replaced
126:2004ec2b653e | 127:5b113c87b6e6 |
---|---|
247 Json id = writeJsonId(rr.id); | 247 Json id = writeJsonId(rr.id); |
248 | 248 |
249 switch (rr.type) { | 249 switch (rr.type) { |
250 | 250 |
251 case RRType::List: | 251 case RRType::List: |
252 j = VampJson::fromRpcRequest_List(id); | 252 j = VampJson::fromRpcRequest_List(rr.listRequest, id); |
253 break; | 253 break; |
254 case RRType::Load: | 254 case RRType::Load: |
255 j = VampJson::fromRpcRequest_Load(rr.loadRequest, id); | 255 j = VampJson::fromRpcRequest_Load(rr.loadRequest, id); |
256 break; | 256 break; |
257 case RRType::Configure: | 257 case RRType::Configure: |
381 rr.id = readCapnpId(reader); | 381 rr.id = readCapnpId(reader); |
382 | 382 |
383 switch (rr.type) { | 383 switch (rr.type) { |
384 | 384 |
385 case RRType::List: | 385 case RRType::List: |
386 VampnProto::readRpcRequest_List(reader); // type check only | 386 VampnProto::readRpcRequest_List(rr.listRequest, reader); |
387 break; | 387 break; |
388 case RRType::Load: | 388 case RRType::Load: |
389 VampnProto::readRpcRequest_Load(rr.loadRequest, reader); | 389 VampnProto::readRpcRequest_Load(rr.loadRequest, reader); |
390 break; | 390 break; |
391 case RRType::Configure: | 391 case RRType::Configure: |
414 buildCapnpId(builder, rr.id); | 414 buildCapnpId(builder, rr.id); |
415 | 415 |
416 switch (rr.type) { | 416 switch (rr.type) { |
417 | 417 |
418 case RRType::List: | 418 case RRType::List: |
419 VampnProto::buildRpcRequest_List(builder); | 419 VampnProto::buildRpcRequest_List(builder, rr.listRequest); |
420 break; | 420 break; |
421 case RRType::Load: | 421 case RRType::Load: |
422 VampnProto::buildRpcRequest_Load(builder, rr.loadRequest); | 422 VampnProto::buildRpcRequest_Load(builder, rr.loadRequest); |
423 break; | 423 break; |
424 case RRType::Configure: | 424 case RRType::Configure: |