| 772 | } |
| 773 | |
| 774 | static struct command_result *send_message(struct command *cmd, |
| 775 | struct sent *sent, |
| 776 | struct tlv_onionmsg_payload *payload STEALS, |
| 777 | struct command_result *(*done) |
| 778 | (struct command *cmd, |
| 779 | const char *buf UNUSED, |
| 780 | const jsmntok_t *result UNUSED, |
| 781 | struct sent *sent)) |
| 782 | { |
| 783 | struct sending *sending = tal(cmd, struct sending); |
| 784 | sending->sent = sent; |
| 785 | sending->payload = tal_steal(sending, payload); |
| 786 | sending->done = done; |
| 787 | |
| 788 | return make_reply_path(cmd, sending); |
| 789 | } |
| 790 | |
| 791 | /* We've received neither a reply nor a payment; return failure. */ |
| 792 | static void timeout_sent_inv(struct sent *sent) |
no test coverage detected