FIXME: We accept his parameter for now, will deprecate eventually */
| 1345 | |
| 1346 | /* FIXME: We accept his parameter for now, will deprecate eventually */ |
| 1347 | static struct command_result *param_route_hop_style(struct command *cmd, |
| 1348 | const char *name, |
| 1349 | const char *buffer, |
| 1350 | const jsmntok_t *tok, |
| 1351 | int **unused) |
| 1352 | { |
| 1353 | if (json_tok_streq(buffer, tok, "tlv")) { |
| 1354 | return NULL; |
| 1355 | } |
| 1356 | |
| 1357 | /* We still let you *specify* this, but we ignore it! */ |
| 1358 | if (deprecated_apis && json_tok_streq(buffer, tok, "legacy")) |
| 1359 | return NULL; |
| 1360 | |
| 1361 | return command_fail_badparam(cmd, name, buffer, tok, |
| 1362 | "should be 'tlv' ('legacy' not supported)"); |
| 1363 | } |
| 1364 | |
| 1365 | static struct command_result *param_route_hops(struct command *cmd, |
| 1366 | const char *name, |
nothing calls this directly
no test coverage detected