From fcb999c01c22548f582f167e1b1e86f0c3a5a2fd Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Mon, 18 Sep 2006 19:54:18 +0000 Subject: merge qwell's CLI verbification work git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43212 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_osplookup.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'apps/app_osplookup.c') diff --git a/apps/app_osplookup.c b/apps/app_osplookup.c index e5fcf9a51..f4f7d8cc6 100644 --- a/apps/app_osplookup.c +++ b/apps/app_osplookup.c @@ -1596,11 +1596,10 @@ static const char osp_usage[] = "Usage: osp show\n" " Displays information on Open Settlement Protocol support\n"; -static struct ast_cli_entry osp_cli = { - {"osp", "show", NULL}, - osp_show, - "Displays OSP information", - osp_usage +static struct ast_cli_entry cli_osp[] = { + { { "osp", "show", NULL}, + osp_show, "Displays OSP information", + osp_usage }, }; static int load_module(void) @@ -1610,8 +1609,8 @@ static int load_module(void) if(!osp_load()) return AST_MODULE_LOAD_DECLINE; - res = ast_cli_register(&osp_cli); - res |= ast_register_application(app1, ospauth_exec, synopsis1, descrip1); + ast_cli_register_multiple(cli_osp, sizeof(cli_osp) / sizeof(struct ast_cli_entry)); + res = ast_register_application(app1, ospauth_exec, synopsis1, descrip1); res |= ast_register_application(app2, osplookup_exec, synopsis2, descrip2); res |= ast_register_application(app3, ospnext_exec, synopsis3, descrip3); res |= ast_register_application(app4, ospfinished_exec, synopsis4, descrip4); @@ -1627,7 +1626,7 @@ static int unload_module(void) res |= ast_unregister_application(app3); res |= ast_unregister_application(app2); res |= ast_unregister_application(app1); - res |= ast_cli_unregister(&osp_cli); + ast_cli_unregister_multiple(cli_osp, sizeof(cli_osp) / sizeof(struct ast_cli_entry)); osp_unload(); ast_module_user_hangup_all(); -- cgit v1.2.3