| 598 | } |
| 599 | |
| 600 | struct command_result *param_bin_from_hex(struct command *cmd, const char *name, |
| 601 | const char *buffer, const jsmntok_t *tok, |
| 602 | u8 **bin) |
| 603 | { |
| 604 | *bin = json_tok_bin_from_hex(cmd, buffer, tok); |
| 605 | if (bin != NULL) |
| 606 | return NULL; |
| 607 | |
| 608 | return command_fail_badparam(cmd, name, buffer, tok, |
| 609 | "should be a hex value"); |
| 610 | } |
| 611 | |
| 612 | struct command_result *param_hops_array(struct command *cmd, const char *name, |
| 613 | const char *buffer, const jsmntok_t *tok, |
nothing calls this directly
no test coverage detected