MCPcopy Create free account
hub / github.com/ElementsProject/lightning / json_stream_dup

Function json_stream_dup

common/json_stream.c:62–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62struct 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?

Callers 2

plugin_single_notifyFunction · 0.85
plugins_notifyFunction · 0.85

Calls 1

json_out_dupFunction · 0.85

Tested by

no test coverage detected