| 699 | } |
| 700 | |
| 701 | struct command_result *param_bin_from_hex(struct command *cmd, const char *name, |
| 702 | const char *buffer, const jsmntok_t *tok, |
| 703 | u8 **bin) |
| 704 | { |
| 705 | *bin = json_tok_bin_from_hex(cmd, buffer, tok); |
| 706 | if (bin != NULL) |
| 707 | return NULL; |
| 708 | |
| 709 | return command_fail_badparam(cmd, name, buffer, tok, |
| 710 | "should be a hex value"); |
| 711 | } |
| 712 | |
| 713 | struct command_result *param_hops_array(struct command *cmd, const char *name, |
| 714 | const char *buffer, const jsmntok_t *tok, |
nothing calls this directly
no test coverage detected