| 124 | } |
| 125 | |
| 126 | static struct command_result *param_id_addr_string(struct command *cmd, |
| 127 | const char *name, |
| 128 | const char *buffer, |
| 129 | const jsmntok_t *tok, |
| 130 | const char **addr) |
| 131 | { |
| 132 | if (*addr) { |
| 133 | return command_fail(cmd, JSONRPC2_INVALID_PARAMS, |
| 134 | "Can't specify host as both xxx@yyy " |
| 135 | "and separate argument"); |
| 136 | } |
| 137 | return param_string(cmd, name, buffer, tok, addr); |
| 138 | } |
| 139 | |
| 140 | static struct command_result *param_id_addr_u16(struct command *cmd, |
| 141 | const char *name, |
nothing calls this directly
no test coverage detected