mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
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:
@@ -2217,9 +2217,9 @@ static int deadagi_exec(struct ast_channel *chan, void *data)
|
||||
}
|
||||
|
||||
static struct ast_cli_entry cli_agi[] = {
|
||||
NEW_CLI(handle_cli_agi_debug, "Enable/Disable AGI debugging"),
|
||||
NEW_CLI(handle_cli_agi_show, "List AGI commands or specific help"),
|
||||
NEW_CLI(handle_cli_agi_dumphtml, "Dumps a list of AGI commands in HTML format")
|
||||
AST_CLI(handle_cli_agi_debug, "Enable/Disable AGI debugging"),
|
||||
AST_CLI(handle_cli_agi_show, "List AGI commands or specific help"),
|
||||
AST_CLI(handle_cli_agi_dumphtml, "Dumps a list of AGI commands in HTML format")
|
||||
};
|
||||
|
||||
static int unload_module(void)
|
||||
|
@@ -176,7 +176,7 @@ static char *handle_orig(struct ast_cli_entry *e, int cmd, struct ast_cli_args *
|
||||
}
|
||||
|
||||
static struct ast_cli_entry cli_cliorig[] = {
|
||||
NEW_CLI(handle_orig, "Originate a call"),
|
||||
AST_CLI(handle_orig, "Originate a call"),
|
||||
};
|
||||
|
||||
/*! \brief Unload orginate module */
|
||||
|
@@ -67,7 +67,7 @@ static int pgsql_reconnect(const char *database);
|
||||
static char *handle_cli_realtime_pgsql_status(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a);
|
||||
|
||||
static struct ast_cli_entry cli_realtime[] = {
|
||||
NEW_CLI(handle_cli_realtime_pgsql_status, "Shows connection information for the PostgreSQL RealTime driver"),
|
||||
AST_CLI(handle_cli_realtime_pgsql_status, "Shows connection information for the PostgreSQL RealTime driver"),
|
||||
};
|
||||
|
||||
static struct ast_variable *realtime_pgsql(const char *database, const char *table, va_list ap)
|
||||
|
@@ -500,7 +500,7 @@ AST_MUTEX_DEFINE_STATIC(mutex);
|
||||
* command.
|
||||
*/
|
||||
static struct ast_cli_entry cli_status[] = {
|
||||
NEW_CLI(handle_cli_show_sqlite_status, "Show status information about the SQLite 2 driver"),
|
||||
AST_CLI(handle_cli_show_sqlite_status, "Show status information about the SQLite 2 driver"),
|
||||
};
|
||||
|
||||
/*
|
||||
|
@@ -147,7 +147,7 @@ fail_out:
|
||||
}
|
||||
|
||||
static struct ast_cli_entry cli_convert[] = {
|
||||
NEW_CLI(handle_cli_file_convert, "Convert audio file")
|
||||
AST_CLI(handle_cli_file_convert, "Convert audio file")
|
||||
};
|
||||
|
||||
static int unload_module(void)
|
||||
|
@@ -582,8 +582,8 @@ static char *handle_cli_keys_init(struct ast_cli_entry *e, int cmd, struct ast_c
|
||||
}
|
||||
|
||||
static struct ast_cli_entry cli_crypto[] = {
|
||||
NEW_CLI(handle_cli_keys_show, "Displays RSA key information"),
|
||||
NEW_CLI(handle_cli_keys_init, "Initialize RSA key passcodes")
|
||||
AST_CLI(handle_cli_keys_show, "Displays RSA key information"),
|
||||
AST_CLI(handle_cli_keys_init, "Initialize RSA key passcodes")
|
||||
};
|
||||
|
||||
/*! \brief initialise the res_crypto module */
|
||||
|
@@ -2629,11 +2629,11 @@ static char *handle_parkedcalls_deprecated(struct ast_cli_entry *e, int cmd, str
|
||||
return res;
|
||||
}
|
||||
|
||||
static struct ast_cli_entry cli_show_parkedcalls_deprecated = NEW_CLI(handle_parkedcalls_deprecated, "List currently parked calls.");
|
||||
static struct ast_cli_entry cli_show_parkedcalls_deprecated = AST_CLI(handle_parkedcalls_deprecated, "List currently parked calls.");
|
||||
|
||||
static struct ast_cli_entry cli_features[] = {
|
||||
NEW_CLI(handle_feature_show, "Lists configured features"),
|
||||
NEW_CLI(handle_parkedcalls, "List currently parked calls", .deprecate_cmd = &cli_show_parkedcalls_deprecated),
|
||||
AST_CLI(handle_feature_show, "Lists configured features"),
|
||||
AST_CLI(handle_parkedcalls, "List currently parked calls", .deprecate_cmd = &cli_show_parkedcalls_deprecated),
|
||||
};
|
||||
|
||||
/*!
|
||||
|
@@ -382,9 +382,9 @@ out: v = v->next;
|
||||
|
||||
/*! \brief CLI entries for commands provided by this module */
|
||||
static struct ast_cli_entry cli_indications[] = {
|
||||
NEW_CLI(handle_cli_indication_add, "Add the given indication to the country"),
|
||||
NEW_CLI(handle_cli_indication_remove, "Remove the given indication from the country"),
|
||||
NEW_CLI(handle_cli_indication_show, "Display a list of all countries/indications")
|
||||
AST_CLI(handle_cli_indication_add, "Add the given indication to the country"),
|
||||
AST_CLI(handle_cli_indication_remove, "Remove the given indication from the country"),
|
||||
AST_CLI(handle_cli_indication_show, "Display a list of all countries/indications")
|
||||
};
|
||||
|
||||
/*! \brief Unload indicators module */
|
||||
|
@@ -115,12 +115,12 @@ static int aji_register_transport2(void *data, ikspak *pak);
|
||||
*/
|
||||
|
||||
static struct ast_cli_entry aji_cli[] = {
|
||||
NEW_CLI(aji_do_debug, "Enable jabber debugging"),
|
||||
NEW_CLI(aji_no_debug, "Disable Jabber debug"),
|
||||
NEW_CLI(aji_do_reload, "Reload Jabber configuration"),
|
||||
NEW_CLI(aji_show_clients, "Show state of clients and components"),
|
||||
NEW_CLI(aji_show_buddies, "Show buddy lists of our clients"),
|
||||
NEW_CLI(aji_test, "Shows roster, but is generally used for mog's debugging."),
|
||||
AST_CLI(aji_do_debug, "Enable jabber debugging"),
|
||||
AST_CLI(aji_no_debug, "Disable Jabber debug"),
|
||||
AST_CLI(aji_do_reload, "Reload Jabber configuration"),
|
||||
AST_CLI(aji_show_clients, "Show state of clients and components"),
|
||||
AST_CLI(aji_show_buddies, "Show buddy lists of our clients"),
|
||||
AST_CLI(aji_test, "Shows roster, but is generally used for mog's debugging."),
|
||||
};
|
||||
|
||||
static char *app_ajisend = "JabberSend";
|
||||
|
@@ -204,7 +204,7 @@ static char *handle_cli_ulimit(struct ast_cli_entry *e, int cmd, struct ast_cli_
|
||||
}
|
||||
|
||||
static struct ast_cli_entry cli_ulimit =
|
||||
NEW_CLI(handle_cli_ulimit, "Set or show process resource limits");
|
||||
AST_CLI(handle_cli_ulimit, "Set or show process resource limits");
|
||||
|
||||
static int unload_module(void)
|
||||
{
|
||||
|
@@ -1273,9 +1273,9 @@ static char *handle_cli_moh_show_classes(struct ast_cli_entry *e, int cmd, struc
|
||||
}
|
||||
|
||||
static struct ast_cli_entry cli_moh[] = {
|
||||
NEW_CLI(handle_cli_moh_reload, "Reload MusicOnHold"),
|
||||
NEW_CLI(handle_cli_moh_show_classes, "List MusicOnHold classes"),
|
||||
NEW_CLI(handle_cli_moh_show_files, "List MusicOnHold file-based classes")
|
||||
AST_CLI(handle_cli_moh_reload, "Reload MusicOnHold"),
|
||||
AST_CLI(handle_cli_moh_show_classes, "List MusicOnHold classes"),
|
||||
AST_CLI(handle_cli_moh_show_files, "List MusicOnHold file-based classes")
|
||||
};
|
||||
|
||||
static int init_classes(int reload)
|
||||
|
@@ -396,7 +396,7 @@ static char *handle_cli_odbc_show(struct ast_cli_entry *e, int cmd, struct ast_c
|
||||
}
|
||||
|
||||
static struct ast_cli_entry cli_odbc[] = {
|
||||
NEW_CLI(handle_cli_odbc_show, "List ODBC DSN(s)")
|
||||
AST_CLI(handle_cli_odbc_show, "List ODBC DSN(s)")
|
||||
};
|
||||
|
||||
static int odbc_register_class(struct odbc_class *class, int connect)
|
||||
|
@@ -117,8 +117,8 @@ static char *cli_realtime_update(struct ast_cli_entry *e, int cmd, struct ast_cl
|
||||
}
|
||||
|
||||
static struct ast_cli_entry cli_realtime[] = {
|
||||
NEW_CLI(cli_realtime_load, "Used to print out RealTime variables."),
|
||||
NEW_CLI(cli_realtime_update, "Used to update RealTime variables."),
|
||||
AST_CLI(cli_realtime_load, "Used to print out RealTime variables."),
|
||||
AST_CLI(cli_realtime_update, "Used to update RealTime variables."),
|
||||
};
|
||||
|
||||
static int unload_module(void)
|
||||
|
Reference in New Issue
Block a user