| 389 | } |
| 390 | |
| 391 | struct command_result *param_bool(struct command *cmd, const char *name, |
| 392 | const char *buffer, const jsmntok_t *tok, |
| 393 | bool **b) |
| 394 | { |
| 395 | *b = tal(cmd, bool); |
| 396 | if (json_to_bool(buffer, tok, *b)) |
| 397 | return NULL; |
| 398 | return command_fail_badparam(cmd, name, buffer, tok, |
| 399 | "should be 'true' or 'false'"); |
| 400 | } |
| 401 | |
| 402 | struct command_result *param_millionths(struct command *cmd, const char *name, |
| 403 | const char *buffer, |
nothing calls this directly
no test coverage detected