diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2006-09-18 19:54:18 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2006-09-18 19:54:18 +0000 |
commit | fcb999c01c22548f582f167e1b1e86f0c3a5a2fd (patch) | |
tree | cf63baa167f81c95d3dbf417f83681851decad80 /main/config.c | |
parent | fb23c753d30d181175c9ab0b635410b83e6fa980 (diff) |
merge qwell's CLI verbification work
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43212 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/config.c')
-rw-r--r-- | main/config.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/main/config.c b/main/config.c index 6d88aebec..ffd58b52b 100644 --- a/main/config.c +++ b/main/config.c @@ -1232,14 +1232,22 @@ static int config_command(int fd, int argc, char **argv) } static char show_config_help[] = - "Usage: show config mappings\n" + "Usage: core list config mappings\n" " Shows the filenames to config engines.\n"; -static struct ast_cli_entry config_command_struct = { - { "show", "config", "mappings", NULL }, config_command, "Show Config mappings (file names to config engines)", show_config_help, NULL +static struct ast_cli_entry cli_show_config_mappings_deprecated = { + { "show", "config", "mappings", NULL }, + config_command, NULL, + NULL }; + +static struct ast_cli_entry cli_config[] = { + { { "core", "list", "config", "mappings", NULL }, + config_command, "Display config mappings (file names to config engines)", + show_config_help, NULL, &cli_show_config_mappings_deprecated }, }; int register_config_cli() { - return ast_cli_register(&config_command_struct); + ast_cli_register_multiple(cli_config, sizeof(cli_config) / sizeof(struct ast_cli_entry)); + return 0; } |