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

Function json_stream_output_

common/json_stream.c:265–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265struct io_plan *json_stream_output_(struct json_stream *js,
266 struct io_conn *conn,
267 struct io_plan *(*cb)(struct io_conn *conn,
268 struct json_stream *js,
269 void *arg),
270 void *arg)
271{
272 assert(!js->reader);
273
274 js->reader_cb = cb;
275 js->reader_arg = arg;
276
277 js->len_read = 0;
278 return json_stream_output_write(conn, js);
279}
280
281void json_add_num(struct json_stream *result, const char *fieldname, unsigned int value)
282{

Callers

nothing calls this directly

Calls 1

json_stream_output_writeFunction · 0.85

Tested by

no test coverage detected