| 50 | } |
| 51 | |
| 52 | struct json_stream *json_stream_dup(const tal_t *ctx, |
| 53 | struct json_stream *original, |
| 54 | struct log *log) |
| 55 | { |
| 56 | struct json_stream *js = tal_dup(ctx, struct json_stream, original); |
| 57 | |
| 58 | js->jout = json_out_dup(js, original->jout); |
| 59 | js->log = log; |
| 60 | return js; |
| 61 | } |
| 62 | |
| 63 | /** |
| 64 | * json_stream_still_writing - is someone currently writing to this stream? |
no test coverage detected