Mercurial > hg > piper-cpp
diff capnproto/VampnProto.h @ 25:5b9690d18241
Pull up type determination into VampJson
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Tue, 24 May 2016 10:43:34 +0100 |
parents | 533ca5ca3404 |
children | 13393bdfc7ef |
line wrap: on
line diff
--- a/capnproto/VampnProto.h Mon May 23 16:09:25 2016 +0100 +++ b/capnproto/VampnProto.h Tue May 24 10:43:34 2016 +0100 @@ -653,6 +653,13 @@ } static void + readVampRequest_List(const VampRequest::Reader &r) { + if (r.getRequest().which() != VampRequest::Request::Which::LIST) { + throw std::runtime_error("not a list request"); + } + } + + static void buildVampResponse_List(VampResponse::Builder &b, std::string errorText, const std::vector<Vamp::HostExt::PluginStaticData> &d) {