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

Function json_out_obj

plugins/bkpr/test/run-recorder.c:113–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113struct json_out *json_out_obj(const tal_t *ctx,
114 const char *fieldname,
115 const char *str)
116{
117 struct json_out *jout = json_out_new(ctx);
118 json_out_start(jout, NULL, '{');
119 if (str)
120 json_out_addstr(jout, fieldname, str);
121 tal_free_if_taken(str);
122 json_out_end(jout, '}');
123 json_out_finished(jout);
124
125 return jout;
126}
127
128#if HAVE_SQLITE3
129#include <sqlite3.h>

Callers 9

sql_reqvFunction · 0.50
initFunction · 0.50
initFunction · 0.50
rescan_completeFunction · 0.50
json_bwatch_del_outpointFunction · 0.50
json_bwatch_del_scidFunction · 0.50

Calls 6

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

Tested by

no test coverage detected