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

Function jsonrpc_command_add_perm

lightningd/jsonrpc.c:1355–1363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1353}
1354
1355static bool jsonrpc_command_add_perm(struct lightningd *ld,
1356 struct jsonrpc *rpc,
1357 struct json_command *command)
1358{
1359 if (!command_add(rpc, command))
1360 return false;
1361 setup_command_usage(ld, command);
1362 return true;
1363}
1364
1365static void destroy_jsonrpc(struct jsonrpc *jsonrpc)
1366{

Callers 1

jsonrpc_setupFunction · 0.85

Calls 2

command_addFunction · 0.85
setup_command_usageFunction · 0.70

Tested by

no test coverage detected