# HG changeset patch # User Chris Cannam # Date 1463760424 -3600 # Node ID b0fc4eb51547d92a288392359daa519194a04ae6 # Parent dff96610ac058fcb9bb6abfe72fc704d28999238 More conversions diff -r dff96610ac05 -r b0fc4eb51547 utilities/json-to-capnp.cpp --- a/utilities/json-to-capnp.cpp Fri May 20 14:37:28 2016 +0100 +++ b/utilities/json-to-capnp.cpp Fri May 20 17:07:04 2016 +0100 @@ -120,17 +120,17 @@ auto sd = VampJson::toPluginStaticData(payload); VampnProto::buildPluginStaticData(pc, sd); - } else if (type == "processblock") { - throw VampJson::Failure("not implemented yet"); ///!!! + } else if (type == "processrequest") { + auto p = message.initRoot(); + PreservingPluginHandleMapper mapper; + VampnProto::buildProcessRequest + (p, VampJson::toProcessRequest(payload, mapper), mapper); } else if (type == "realtime") { auto b = message.initRoot(); VampnProto::buildRealTime (b, VampJson::toRealTime(payload)); - } else if (type == "valueextents") { - throw VampJson::Failure("no ValueExtents struct in Cap'n Proto mapping"); - } else { throw VampJson::Failure("unknown or unsupported JSON schema type " + type);