| 403 | } |
| 404 | |
| 405 | static struct command_result *json_channel_apy(struct command *cmd, |
| 406 | const char *buf, |
| 407 | const jsmntok_t *params) |
| 408 | { |
| 409 | struct apy_req *apyreq = tal(cmd, struct apy_req); |
| 410 | |
| 411 | if (!param(cmd, buf, params, |
| 412 | p_opt_def("start_time", param_u64, &apyreq->start_time, 0), |
| 413 | p_opt_def("end_time", param_u64, &apyreq->end_time, |
| 414 | SQLITE_MAX_UINT), |
| 415 | NULL)) |
| 416 | return command_param_failed(); |
| 417 | |
| 418 | return refresh_moves(cmd, do_channel_apy, apyreq); |
| 419 | } |
| 420 | |
| 421 | static struct command_result *param_csv_format(struct command *cmd, const char *name, |
| 422 | const char *buffer, const jsmntok_t *tok, |
nothing calls this directly
no test coverage detected