| 1353 | } |
| 1354 | |
| 1355 | static 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 | |
| 1365 | static void destroy_jsonrpc(struct jsonrpc *jsonrpc) |
| 1366 | { |
no test coverage detected