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

Function json_out_obj

plugins/libplugin.c:313–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313struct json_out *json_out_obj(const tal_t *ctx,
314 const char *fieldname,
315 const char *str)
316{
317 struct json_out *jout = json_out_new(ctx);
318 json_out_start(jout, NULL, '{');
319 if (str)
320 json_out_addstr(jout, fieldname, str);
321 json_out_end(jout, '}');
322 json_out_finished(jout);
323
324 return jout;
325}
326
327/* Realloc helper for tal membufs */
328static void *membuf_tal_realloc(struct membuf *mb, void *rawelems,

Callers 9

json_helloworldFunction · 0.85
initFunction · 0.85
initFunction · 0.85
initFunction · 0.85
initFunction · 0.85
handle_initFunction · 0.85
initFunction · 0.85
initFunction · 0.85
initFunction · 0.85

Calls 5

json_out_newFunction · 0.85
json_out_startFunction · 0.85
json_out_addstrFunction · 0.85
json_out_endFunction · 0.85
json_out_finishedFunction · 0.85

Tested by 1

json_helloworldFunction · 0.68