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

Function command_set_usage

plugins/libplugin.c:714–720  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

712}
713
714void command_set_usage(struct command *cmd, const char *usage TAKES)
715{
716 usage = tal_strdup(NULL, usage);
717 if (!strmap_add(&cmd->plugin->usagemap, cmd->methodname, usage))
718 plugin_err(cmd->plugin, "Two usages for command %s?",
719 cmd->methodname);
720}
721
722static const char *read_one_json_sync(struct plugin *p, const jsmntok_t **toks)
723{

Callers

nothing calls this directly

Calls 1

plugin_errFunction · 0.70

Tested by

no test coverage detected