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 /pbx/pbx_ael.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 'pbx/pbx_ael.c')
-rw-r--r-- | pbx/pbx_ael.c | 35 |
1 files changed, 26 insertions, 9 deletions
diff --git a/pbx/pbx_ael.c b/pbx/pbx_ael.c index c45f73601..cbef91f6a 100644 --- a/pbx/pbx_ael.c +++ b/pbx/pbx_ael.c @@ -3861,25 +3861,42 @@ static int ael2_reload(int fd, int argc, char *argv[]) return (pbx_load_module()); } -static struct ast_cli_entry ael_cli[] = { - { { "ael", "reload", NULL }, ael2_reload, "Reload AEL configuration"}, - { { "ael", "debug", "read", NULL }, ael2_debug_read, "Enable AEL read debug (does nothing)"}, - { { "ael", "debug", "tokens", NULL }, ael2_debug_tokens, "Enable AEL tokens debug (does nothing)"}, - { { "ael", "debug", "macros", NULL }, ael2_debug_macros, "Enable AEL macros debug (does nothing)"}, - { { "ael", "debug", "contexts", NULL }, ael2_debug_contexts, "Enable AEL contexts debug (does nothing)"}, - { { "ael", "no", "debug", NULL }, ael2_no_debug, "Disable AEL debug messages"}, +static struct ast_cli_entry cli_ael_no_debug = { + { "ael", "no", "debug", NULL }, + ael2_no_debug, NULL, + NULL }; + +static struct ast_cli_entry cli_ael[] = { + { { "ael", "reload", NULL }, + ael2_reload, "Reload AEL configuration" }, + + { { "ael", "debug", "read", NULL }, + ael2_debug_read, "Enable AEL read debug (does nothing)" }, + + { { "ael", "debug", "tokens", NULL }, + ael2_debug_tokens, "Enable AEL tokens debug (does nothing)" }, + + { { "ael", "debug", "macros", NULL }, + ael2_debug_macros, "Enable AEL macros debug (does nothing)" }, + + { { "ael", "debug", "contexts", NULL }, + ael2_debug_contexts, "Enable AEL contexts debug (does nothing)" }, + + { { "ael", "nodebug", NULL }, + ael2_no_debug, "Disable AEL debug messages", + NULL, NULL, &cli_ael_no_debug }, }; static int unload_module(void) { ast_context_destroy(NULL, registrar); - ast_cli_unregister_multiple(ael_cli, sizeof(ael_cli)/ sizeof(ael_cli[0])); + ast_cli_unregister_multiple(cli_ael, sizeof(cli_ael) / sizeof(struct ast_cli_entry)); return 0; } static int load_module(void) { - ast_cli_register_multiple(ael_cli, sizeof(ael_cli)/ sizeof(ael_cli[0])); + ast_cli_register_multiple(cli_ael, sizeof(cli_ael) / sizeof(struct ast_cli_entry)); return (pbx_load_module()); } |