| 535 | } |
| 536 | |
| 537 | static struct command_result *json_bkpr_report(struct command *cmd, |
| 538 | const char *buf, |
| 539 | const jsmntok_t *params) |
| 540 | { |
| 541 | struct report_info *info = tal(cmd, struct report_info); |
| 542 | |
| 543 | if (!param(cmd, buf, params, |
| 544 | p_req("format", param_report_format, &info->format), |
| 545 | p_opt("headers", param_escaped_string_array, &info->headers), |
| 546 | p_opt_def("escape", param_escape_format, &info->escapes, REPORT_FMT_NONE), |
| 547 | p_opt_def("start_time", param_u64, &info->start_time, 0), |
| 548 | p_opt_def("end_time", param_u64, &info->end_time, SQLITE_MAX_UINT), |
| 549 | NULL)) |
| 550 | return command_param_failed(); |
| 551 | |
| 552 | return refresh_moves(cmd, do_bkpr_report, info); |
| 553 | } |
| 554 | |
| 555 | struct list_income_info { |
| 556 | bool *consolidate_fees; |
nothing calls this directly
no test coverage detected