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

Function json_stream_close

common/json_stream.c:119–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119void json_stream_close(struct json_stream *js, struct command *writer)
120{
121 /* FIXME: We use writer == NULL for malformed: make writer a void *?
122 * I used to assert(writer); here. */
123 assert(js->writer == writer);
124
125 assert(!js->filter);
126 json_stream_double_cr(js);
127 json_stream_flush(js);
128 js->writer = NULL;
129}
130
131/* Also called when we're oom, so it will kill reader. */
132void json_stream_flush(struct json_stream *js)

Callers 6

command_raw_completeFunction · 0.85
json_command_malformedFunction · 0.85
jsonrpc_finish_and_sendFunction · 0.85
command_complete_nojsonFunction · 0.85
send_outreqFunction · 0.85
run_childFunction · 0.85

Calls 2

json_stream_double_crFunction · 0.85
json_stream_flushFunction · 0.85

Tested by

no test coverage detected