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

@@ -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)

View File

@@ -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 */

View File

@@ -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)

View File

@@ -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"),
};
/*

View File

@@ -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)

View File

@@ -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 */

View File

@@ -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),
};
/*!

View File

@@ -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 */

View File

@@ -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";

View File

@@ -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)
{

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)