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

Function json_add_primitive

common/json_stream.c:188–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188void json_add_primitive(struct json_stream *js,
189 const char *fieldname,
190 const char *val TAKES)
191{
192 json_add_primitive_fmt(js, fieldname, "%s", val);
193 tal_free_if_taken(val);
194}
195
196void json_add_stringn(struct json_stream *js,
197 const char *fieldname,

Callers 8

json_add_plugin_valFunction · 0.85
json_add_configvalFunction · 0.85
json_add_nullFunction · 0.85
json_command_malformedFunction · 0.85
json_add_boolFunction · 0.85
refresh_completeFunction · 0.85
json_add_nullFunction · 0.85
json_add_currencyrateFunction · 0.85

Calls 2

json_add_primitive_fmtFunction · 0.85
tal_free_if_takenFunction · 0.85

Tested by

no test coverage detected