| 1233 | } |
| 1234 | |
| 1235 | static void json_add_deprecated(struct json_stream *js, |
| 1236 | const char *fieldname, |
| 1237 | const char *depr_start, const char *depr_end) |
| 1238 | { |
| 1239 | if (!depr_start) |
| 1240 | return; |
| 1241 | json_array_start(js, fieldname); |
| 1242 | json_add_string(js, NULL, depr_start); |
| 1243 | if (depr_end) |
| 1244 | json_add_string(js, NULL, depr_end); |
| 1245 | json_array_end(js); |
| 1246 | } |
| 1247 | |
| 1248 | static struct command_result * |
| 1249 | handle_getmanifest(struct command *getmanifest_cmd, |
no test coverage detected