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

Function new_json_stream

common/json_stream.c:27–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27struct json_stream *new_json_stream(const tal_t *ctx,
28 struct command *writer,
29 struct logger *log)
30{
31 struct json_stream *js = tal(ctx, struct json_stream);
32
33 /* FIXME: Add magic so tal_resize can fail! */
34 js->jout = json_out_new(js);
35 json_out_call_on_move(js->jout, adjust_io_write, js);
36 js->writer = writer;
37 js->reader = NULL;
38 js->log = log;
39 js->filter = NULL;
40 return js;
41}
42
43void json_stream_attach_filter(struct json_stream *js,
44 struct json_filter *filter STEALS)

Callers 15

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
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
jsonrpc_request_start_Function · 0.85
jsonrpc_stream_startFunction · 0.85
command_finish_rawstrFunction · 0.85

Calls 1

json_out_newFunction · 0.85

Tested by 5

test_json_filterFunction · 0.68
test_json_escapeFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68