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

Function new_json_stream

common/json_stream.c:37–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37struct json_stream *new_json_stream(const tal_t *ctx,
38 struct command *writer,
39 struct log *log)
40{
41 struct json_stream *js = tal(ctx, struct json_stream);
42
43 /* FIXME: Add magic so tal_resize can fail! */
44 js->jout = json_out_new(js);
45 json_out_call_on_move(js->jout, adjust_io_write, js);
46 js->writer = writer;
47 js->reader = NULL;
48 js->log = log;
49 return js;
50}
51
52struct json_stream *json_stream_dup(const tal_t *ctx,
53 struct json_stream *original,

Callers 12

jcon_new_json_streamFunction · 0.85
json_stream_raw_for_cmdFunction · 0.85
jsonrpc_request_start_Function · 0.85
test_json_filterFunction · 0.85
test_json_escapeFunction · 0.85
jsonrpc_request_start_Function · 0.85
jsonrpc_stream_startFunction · 0.85
plugin_logvFunction · 0.85
plugin_notify_startFunction · 0.85
mw_failFunction · 0.85

Calls 1

json_out_newFunction · 0.85

Tested by 2

test_json_filterFunction · 0.68
test_json_escapeFunction · 0.68