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/file.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/file.c')
-rw-r--r-- | main/file.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/main/file.c b/main/file.c index 101b9ac66..f130b99c8 100644 --- a/main/file.c +++ b/main/file.c @@ -1148,17 +1148,23 @@ static int show_file_formats(int fd, int argc, char *argv[]) #undef FORMAT2 } -struct ast_cli_entry show_file = -{ +char show_file_formats_usage[] = +"Usage: core list file formats\n" +" Displays currently registered file formats (if any)\n"; + +struct ast_cli_entry cli_show_file_formats_deprecated = { { "show", "file", "formats" }, - show_file_formats, - "Displays file formats", - "Usage: show file formats\n" - " displays currently registered file formats (if any)\n" + show_file_formats, NULL, + NULL }; + +struct ast_cli_entry cli_file[] = { + { { "file", "list", "formats" }, + show_file_formats, "Displays file formats", + show_file_formats_usage, NULL, &cli_show_file_formats_deprecated }, }; int ast_file_init(void) { - ast_cli_register(&show_file); + ast_cli_register_multiple(cli_file, sizeof(cli_file) / sizeof(struct ast_cli_entry)); return 0; } |