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

Function jsonrpc_command_add_perm

lightningd/jsonrpc.c:1194–1202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1192}
1193
1194static bool jsonrpc_command_add_perm(struct lightningd *ld,
1195 struct jsonrpc *rpc,
1196 struct json_command *command)
1197{
1198 if (!command_add(rpc, command))
1199 return false;
1200 setup_command_usage(ld, command);
1201 return true;
1202}
1203
1204static void destroy_jsonrpc(struct jsonrpc *jsonrpc)
1205{

Callers 1

jsonrpc_setupFunction · 0.85

Calls 2

command_addFunction · 0.85
setup_command_usageFunction · 0.70

Tested by

no test coverage detected