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

Function param_subsystem

plugins/autoclean.c:471–483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469}
470
471static struct command_result *param_subsystem(struct command *cmd,
472 const char *name,
473 const char *buffer,
474 const jsmntok_t *tok,
475 enum subsystem **subsystem)
476{
477 *subsystem = tal(cmd, enum subsystem);
478 if (json_to_subsystem(buffer, tok, *subsystem))
479 return NULL;
480
481 return command_fail_badparam(cmd, name, buffer, tok,
482 "should be a valid subsystem name");
483}
484
485static struct command_result *json_success_subsystems(struct command *cmd,
486 const enum subsystem *subsystem)

Callers

nothing calls this directly

Calls 2

json_to_subsystemFunction · 0.85
command_fail_badparamFunction · 0.85

Tested by

no test coverage detected