| 419 | } |
| 420 | |
| 421 | static struct command_result *param_csv_format(struct command *cmd, const char *name, |
| 422 | const char *buffer, const jsmntok_t *tok, |
| 423 | struct csv_fmt **csv_fmt) |
| 424 | { |
| 425 | *csv_fmt = cast_const(struct csv_fmt *, |
| 426 | csv_match_token(buffer, tok)); |
| 427 | if (*csv_fmt) |
| 428 | return NULL; |
| 429 | |
| 430 | return command_fail_badparam(cmd, name, buffer, tok, |
| 431 | tal_fmt(cmd, |
| 432 | "should be one of: %s", |
| 433 | csv_list_fmts(cmd))); |
| 434 | } |
| 435 | |
| 436 | struct dump_income_info { |
| 437 | struct csv_fmt *csv_fmt; |
nothing calls this directly
no test coverage detected