Convert NEW_CLI to AST_CLI.

Closes issue #11039, as suggested by seanbright.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@86536 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jason Parker
2007-10-19 18:29:40 +00:00
parent 65761cbd7a
commit b0f3e6097e
64 changed files with 308 additions and 308 deletions

View File

@@ -1108,47 +1108,47 @@ static char *group_show_channels(struct ast_cli_entry *e, int cmd, struct ast_cl
#undef FORMAT_STRING
}
static struct ast_cli_entry cli_debug_channel_deprecated = NEW_CLI(handle_debugchan_deprecated, "Enable debugging on channel");
static struct ast_cli_entry cli_module_load_deprecated = NEW_CLI(handle_load_deprecated, "Load a module");
static struct ast_cli_entry cli_module_reload_deprecated = NEW_CLI(handle_reload_deprecated, "reload modules by name");
static struct ast_cli_entry cli_module_unload_deprecated = NEW_CLI(handle_unload_deprecated, "unload modules by name");
static struct ast_cli_entry cli_debug_channel_deprecated = AST_CLI(handle_debugchan_deprecated, "Enable debugging on channel");
static struct ast_cli_entry cli_module_load_deprecated = AST_CLI(handle_load_deprecated, "Load a module");
static struct ast_cli_entry cli_module_reload_deprecated = AST_CLI(handle_reload_deprecated, "reload modules by name");
static struct ast_cli_entry cli_module_unload_deprecated = AST_CLI(handle_unload_deprecated, "unload modules by name");
static char *handle_help(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a);
static struct ast_cli_entry cli_cli[] = {
/* Deprecated, but preferred command is now consolidated (and already has a deprecated command for it). */
NEW_CLI(handle_commandcomplete, "Command complete"),
NEW_CLI(handle_commandnummatches, "Returns number of command matches"),
NEW_CLI(handle_commandmatchesarray, "Returns command matches array"),
AST_CLI(handle_commandcomplete, "Command complete"),
AST_CLI(handle_commandnummatches, "Returns number of command matches"),
AST_CLI(handle_commandmatchesarray, "Returns command matches array"),
NEW_CLI(handle_nodebugchan_deprecated, "Disable debugging on channel(s)"),
AST_CLI(handle_nodebugchan_deprecated, "Disable debugging on channel(s)"),
NEW_CLI(handle_chanlist, "Display information on channels"),
AST_CLI(handle_chanlist, "Display information on channels"),
NEW_CLI(handle_showchan, "Display information on a specific channel"),
AST_CLI(handle_showchan, "Display information on a specific channel"),
NEW_CLI(handle_core_set_debug_channel, "Enable/disable debugging on a channel",
AST_CLI(handle_core_set_debug_channel, "Enable/disable debugging on a channel",
.deprecate_cmd = &cli_debug_channel_deprecated),
NEW_CLI(handle_verbose, "Set level of debug/verbose chattiness"),
AST_CLI(handle_verbose, "Set level of debug/verbose chattiness"),
NEW_CLI(group_show_channels, "Display active channels with group(s)"),
AST_CLI(group_show_channels, "Display active channels with group(s)"),
NEW_CLI(handle_help, "Display help list, or specific help on a command"),
AST_CLI(handle_help, "Display help list, or specific help on a command"),
NEW_CLI(handle_logger_mute, "Toggle logging output to a console"),
AST_CLI(handle_logger_mute, "Toggle logging output to a console"),
NEW_CLI(handle_modlist, "List modules and info"),
AST_CLI(handle_modlist, "List modules and info"),
NEW_CLI(handle_load, "Load a module by name", .deprecate_cmd = &cli_module_load_deprecated),
AST_CLI(handle_load, "Load a module by name", .deprecate_cmd = &cli_module_load_deprecated),
NEW_CLI(handle_reload, "Reload configuration", .deprecate_cmd = &cli_module_reload_deprecated),
AST_CLI(handle_reload, "Reload configuration", .deprecate_cmd = &cli_module_reload_deprecated),
NEW_CLI(handle_unload, "Unload a module by name", .deprecate_cmd = &cli_module_unload_deprecated ),
AST_CLI(handle_unload, "Unload a module by name", .deprecate_cmd = &cli_module_unload_deprecated ),
NEW_CLI(handle_showuptime, "Show uptime information"),
AST_CLI(handle_showuptime, "Show uptime information"),
NEW_CLI(handle_softhangup, "Request a hangup on a given channel"),
AST_CLI(handle_softhangup, "Request a hangup on a given channel"),
};
/*!