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

Function param_report_format

plugins/bkpr/report.c:353–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351}
352
353struct command_result *param_report_format(struct command *cmd,
354 const char *name,
355 const char *buffer,
356 const jsmntok_t *tok,
357 struct report_format **format)
358{
359 const char *err, *start;
360 struct command_result *ret;
361
362 ret = param_escaped_string(cmd, name, buffer, tok, &start);
363 if (ret)
364 return ret;
365
366 *format = parse_report_format(cmd, &start, '\0', '\0', &err);
367 if (!*format)
368 return command_fail_badparam(cmd, name, buffer, tok, err);
369
370 return NULL;
371}
372
373struct command_result *param_escape_format(struct command *cmd,
374 const char *name,

Callers

nothing calls this directly

Calls 3

param_escaped_stringFunction · 0.85
parse_report_formatFunction · 0.85
command_fail_badparamFunction · 0.50

Tested by

no test coverage detected