| 15 | #include <wire/peer_wire.h> |
| 16 | |
| 17 | static void adjust_io_write(struct json_out *jout, |
| 18 | ptrdiff_t delta, |
| 19 | struct json_stream *js) |
| 20 | { |
| 21 | /* If io_write is in progress, we shift it to point to new buffer pos */ |
| 22 | if (js->reader) |
| 23 | /* FIXME: This, or something prettier (io_replan?) belong in ccan/io! */ |
| 24 | js->reader->plan[IO_OUT].arg.u1.cp += delta; |
| 25 | } |
| 26 | |
| 27 | struct json_stream *new_json_stream(const tal_t *ctx, |
| 28 | struct command *writer, |
nothing calls this directly
no outgoing calls
no test coverage detected