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

Function jsonrpc_command_add_perm

lightningd/jsonrpc.c:1357–1365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

jsonrpc_setupFunction · 0.85

Calls 2

command_addFunction · 0.85
setup_command_usageFunction · 0.70

Tested by

no test coverage detected