| 1243 | } |
| 1244 | |
| 1245 | static void json_add_deprecated(struct json_stream *js, |
| 1246 | const char *fieldname, |
| 1247 | const char *depr_start, const char *depr_end) |
| 1248 | { |
| 1249 | if (!depr_start) |
| 1250 | return; |
| 1251 | json_array_start(js, fieldname); |
| 1252 | json_add_string(js, NULL, depr_start); |
| 1253 | if (depr_end) |
| 1254 | json_add_string(js, NULL, depr_end); |
| 1255 | json_array_end(js); |
| 1256 | } |
| 1257 | |
| 1258 | static struct command_result * |
| 1259 | handle_getmanifest(struct command *getmanifest_cmd, |
no test coverage detected