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

Function param_csv_format

plugins/bkpr/bookkeeper.c:421–434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419}
420
421static struct command_result *param_csv_format(struct command *cmd, const char *name,
422 const char *buffer, const jsmntok_t *tok,
423 struct csv_fmt **csv_fmt)
424{
425 *csv_fmt = cast_const(struct csv_fmt *,
426 csv_match_token(buffer, tok));
427 if (*csv_fmt)
428 return NULL;
429
430 return command_fail_badparam(cmd, name, buffer, tok,
431 tal_fmt(cmd,
432 "should be one of: %s",
433 csv_list_fmts(cmd)));
434}
435
436struct dump_income_info {
437 struct csv_fmt *csv_fmt;

Callers

nothing calls this directly

Calls 3

csv_match_tokenFunction · 0.70
csv_list_fmtsFunction · 0.70
command_fail_badparamFunction · 0.50

Tested by

no test coverage detected