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

Function new_command

plugins/libplugin.c:166–180  ·  view source on GitHub ↗

New command, without a filter */

Source from the content-addressed store, hash-verified

164
165/* New command, without a filter */
166static struct command *new_command(const tal_t *ctx,
167 struct plugin *plugin,
168 const char *id TAKES,
169 const char *methodname TAKES,
170 enum command_type type)
171{
172 struct command *cmd = tal(ctx, struct command);
173
174 cmd->plugin = plugin;
175 cmd->type = type;
176 cmd->filter = NULL;
177 cmd->methodname = tal_strdup(cmd, methodname);
178 cmd->id = tal_strdup(cmd, id);
179 return cmd;
180}
181
182static int rpc_open(struct plugin *plugin)
183{

Callers 4

setup_command_usageFunction · 0.85
call_plugin_timerFunction · 0.85
ld_command_handleFunction · 0.85
aux_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected