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

Function new_command

plugins/libplugin.c:167–181  ·  view source on GitHub ↗

New command, without a filter */

Source from the content-addressed store, hash-verified

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

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