| 60 | } |
| 61 | |
| 62 | struct json_stream *json_stream_dup(const tal_t *ctx, |
| 63 | struct json_stream *original, |
| 64 | struct logger *log) |
| 65 | { |
| 66 | struct json_stream *js = tal_dup(ctx, struct json_stream, original); |
| 67 | |
| 68 | js->jout = json_out_dup(js, original->jout); |
| 69 | js->log = log; |
| 70 | /* You can't dup things with filters! */ |
| 71 | assert(!js->filter); |
| 72 | return js; |
| 73 | } |
| 74 | |
| 75 | /** |
| 76 | * json_stream_still_writing - is someone currently writing to this stream? |
no test coverage detected