Mercurial > hg > piper-cpp
comparison capnproto/VampnProto.h @ 24:533ca5ca3404
More on reading and writing json messages
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Mon, 23 May 2016 16:09:25 +0100 (2016-05-23) |
parents | d678cd00e593 |
children | 5b9690d18241 |
comparison
equal
deleted
inserted
replaced
23:d678cd00e593 | 24:533ca5ca3404 |
---|---|
656 buildVampResponse_List(VampResponse::Builder &b, | 656 buildVampResponse_List(VampResponse::Builder &b, |
657 std::string errorText, | 657 std::string errorText, |
658 const std::vector<Vamp::HostExt::PluginStaticData> &d) { | 658 const std::vector<Vamp::HostExt::PluginStaticData> &d) { |
659 b.setSuccess(errorText == ""); | 659 b.setSuccess(errorText == ""); |
660 b.setErrorText(errorText); | 660 b.setErrorText(errorText); |
661 auto r = b.getResponse().initList(d.size()); | 661 auto r = b.getResponse().initList(); |
662 auto p = r.initPlugins(d.size()); | |
662 for (size_t i = 0; i < d.size(); ++i) { | 663 for (size_t i = 0; i < d.size(); ++i) { |
663 auto rd = r[i]; | 664 auto pd = p[i]; |
664 buildPluginStaticData(rd, d[i]); | 665 buildPluginStaticData(pd, d[i]); |
665 } | 666 } |
666 } | 667 } |
667 | 668 |
668 static void | 669 static void |
669 buildVampRequest_Load(VampRequest::Builder &b, | 670 buildVampRequest_Load(VampRequest::Builder &b, |