diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-18 19:54:18 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-18 19:54:18 +0000 |
commit | 5aacb6a82d4cf625774fa1ea39ca193a3be73b35 (patch) | |
tree | cf63baa167f81c95d3dbf417f83681851decad80 /main/dnsmgr.c | |
parent | 4de5810a0530bca0665eadcfb06ef06fd2e86758 (diff) |
merge qwell's CLI verbification work
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43212 f38db490-d61c-443f-a65b-d21fe96a405b
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" }; |