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 /main/dnsmgr.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 'main/dnsmgr.c')
-rw-r--r-- | main/dnsmgr.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/main/dnsmgr.c b/main/dnsmgr.c index 98b7f0905..0cc0d63f8 100644 --- a/main/dnsmgr.c +++ b/main/dnsmgr.c @@ -312,29 +312,23 @@ static int handle_cli_status(int fd, int argc, char *argv[]) } static struct ast_cli_entry cli_reload = { - .cmda = { "dnsmgr", "reload", NULL }, - .handler = handle_cli_reload, - .summary = "Reloads the DNS manager configuration", - .usage = + { "dnsmgr", "reload", NULL }, + handle_cli_reload, "Reloads the DNS manager configuration", "Usage: dnsmgr reload\n" " Reloads the DNS manager configuration.\n" }; static struct ast_cli_entry cli_refresh = { - .cmda = { "dnsmgr", "refresh", NULL }, - .handler = handle_cli_refresh, - .summary = "Performs an immediate refresh", - .usage = + { "dnsmgr", "refresh", NULL }, + handle_cli_refresh, "Performs an immediate refresh", "Usage: dnsmgr refresh [pattern]\n" " Peforms an immediate refresh of the managed DNS entries.\n" " Optional regular expression pattern is used to filter the entries to refresh.\n", }; static struct ast_cli_entry cli_status = { - .cmda = { "dnsmgr", "status", NULL }, - .handler = handle_cli_status, - .summary = "Display the DNS manager status", - .usage = + { "dnsmgr", "status", NULL }, + handle_cli_status, "Display the DNS manager status", "Usage: dnsmgr status\n" " Displays the DNS manager status.\n" }; |