mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
jsonrpc: Add a category field to commands.
A new string field is added to the command structure and is specified at the creation of each native command, and in the JSON created by 'json_add_help_command()'.
This commit is contained in:
@@ -81,6 +81,7 @@ static struct command_result *json_memdump(struct command *cmd,
|
||||
|
||||
static const struct json_command dev_memdump_command = {
|
||||
"dev-memdump",
|
||||
"developer",
|
||||
json_memdump,
|
||||
"Show memory objects currently in use"
|
||||
};
|
||||
@@ -327,6 +328,7 @@ static struct command_result *json_memleak(struct command *cmd,
|
||||
|
||||
static const struct json_command dev_memleak_command = {
|
||||
"dev-memleak",
|
||||
"developer",
|
||||
json_memleak,
|
||||
"Show unreferenced memory objects"
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user