Mercurial > hg > piper-cpp
diff utilities/json-to-capnp.cpp @ 55:38780f15ac8d
Make RequestResponse types more consistent by adding plugin to ConfigurationResponse and introducing a FinishRequest
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Mon, 19 Sep 2016 13:35:56 +0100 |
parents | f4244a2d55ac |
children |
line wrap: on
line diff
--- a/utilities/json-to-capnp.cpp Fri Sep 16 16:34:00 2016 +0100 +++ b/utilities/json-to-capnp.cpp Mon Sep 19 13:35:56 2016 +0100 @@ -55,8 +55,9 @@ } else if (type == "configurationresponse") { auto resp = message.initRoot<ConfigurationResponse>(); + PreservingPluginHandleMapper mapper; VampnProto::buildConfigurationResponse - (resp, VampJson::toConfigurationResponse(payload)); + (resp, VampJson::toConfigurationResponse(payload, mapper), mapper); } else if (type == "feature") { auto f = message.initRoot<Feature>();