| 1560 | } |
| 1561 | |
| 1562 | static struct io_plan *ld_read_json(struct io_conn *conn, |
| 1563 | struct plugin *plugin) |
| 1564 | { |
| 1565 | plugin->used += plugin->len_read; |
| 1566 | if (plugin->used && plugin->used == tal_count(plugin->buffer)) |
| 1567 | tal_resize(&plugin->buffer, plugin->used * 2); |
| 1568 | |
| 1569 | /* Read and process all messages from the connection */ |
| 1570 | while (ld_read_json_one(plugin)) |
| 1571 | ; |
| 1572 | |
| 1573 | /* Now read more from the connection */ |
| 1574 | return io_read_partial(plugin->stdin_conn, |
| 1575 | plugin->buffer + plugin->used, |
| 1576 | tal_count(plugin->buffer) - plugin->used, |
| 1577 | &plugin->len_read, ld_read_json, plugin); |
| 1578 | } |
| 1579 | |
| 1580 | static struct io_plan *ld_write_json(struct io_conn *conn, |
| 1581 | struct plugin *plugin); |
nothing calls this directly
no test coverage detected