| 1435 | } |
| 1436 | |
| 1437 | static struct io_plan *rpc_conn_write_request(struct io_conn *conn, |
| 1438 | struct plugin *plugin) |
| 1439 | { |
| 1440 | struct jstream *jstr = list_top(&plugin->rpc_js_list, struct jstream, list); |
| 1441 | if (jstr) |
| 1442 | return json_stream_output(jstr->js, conn, |
| 1443 | rpc_stream_complete, plugin); |
| 1444 | |
| 1445 | return io_out_wait(conn, plugin->io_rpc_conn, |
| 1446 | rpc_conn_write_request, plugin); |
| 1447 | } |
| 1448 | |
| 1449 | static struct io_plan *rpc_conn_init(struct io_conn *conn, |
| 1450 | struct plugin *plugin) |
no outgoing calls
no test coverage detected