| 757 | } |
| 758 | |
| 759 | struct command_result * |
| 760 | send_outreq(struct plugin *plugin, const struct out_req *req) |
| 761 | { |
| 762 | /* The "param" object. */ |
| 763 | if (req->errcb) |
| 764 | json_object_end(req->js); |
| 765 | json_object_end(req->js); |
| 766 | json_stream_close(req->js, req->cmd); |
| 767 | |
| 768 | ld_rpc_send(plugin, req->js); |
| 769 | |
| 770 | if (req->cmd != NULL) |
| 771 | notleak_with_children(req->cmd); |
| 772 | return &pending; |
| 773 | } |
| 774 | |
| 775 | static struct command_result * |
| 776 | handle_getmanifest(struct command *getmanifest_cmd, |