diff utilities/json-cli.cpp @ 56:815e94fedc1c

Introduce ListResponse type as well
author Chris Cannam <c.cannam@qmul.ac.uk>
date Mon, 19 Sep 2016 14:10:19 +0100
parents 38780f15ac8d
children 85ec33975434
line wrap: on
line diff
--- a/utilities/json-cli.cpp	Mon Sep 19 13:35:56 2016 +0100
+++ b/utilities/json-cli.cpp	Mon Sep 19 14:10:19 2016 +0100
@@ -58,10 +58,10 @@
     }
     
     auto loader = PluginLoader::getInstance();
-    auto pluginData = loader->listPluginData();
+    auto resp = loader->listPluginData();
 
     Json::array j;
-    for (const auto &pd: pluginData) {
+    for (const auto &pd: resp.pluginData) {
 	j.push_back(VampJson::fromPluginStaticData(pd));
     }
     return Json(j);