| 822 | } |
| 823 | |
| 824 | static struct io_plan *plugin_write_json(struct io_conn *conn, |
| 825 | struct plugin *plugin) |
| 826 | { |
| 827 | struct json_stream *js; |
| 828 | |
| 829 | js = list_top(&plugin->jsouts, struct json_stream, list); |
| 830 | if (js) { |
| 831 | return json_stream_output(js, plugin->stdin_conn, plugin_stream_complete, plugin); |
| 832 | } |
| 833 | |
| 834 | return io_out_wait(conn, plugin, plugin_write_json, plugin); |
| 835 | } |
| 836 | |
| 837 | /* This catches the case where their stdout closes (usually they're dead). */ |
| 838 | static void plugin_conn_finish(struct io_conn *conn, struct plugin *plugin) |
no outgoing calls
no test coverage detected