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

Function param_subsystem

plugins/autoclean.c:707–719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

705}
706
707static struct command_result *param_subsystem(struct command *cmd,
708 const char *name,
709 const char *buffer,
710 const jsmntok_t *tok,
711 struct subsystem_and_variant **sv)
712{
713 *sv = tal(cmd, struct subsystem_and_variant);
714 if (json_to_subsystem(buffer, tok, *sv))
715 return NULL;
716
717 return command_fail_badparam(cmd, name, buffer, tok,
718 "should be a valid subsystem name");
719}
720
721static struct command_result *json_success_subsystems(struct command *cmd,
722 const struct subsystem_and_variant *single)

Callers

nothing calls this directly

Calls 2

json_to_subsystemFunction · 0.85
command_fail_badparamFunction · 0.50

Tested by

no test coverage detected