[sr-dev] git:andrei/counters: sercmd: cnt.help command line completion support

Andrei Pelinescu-Onciul andrei at iptel.org
Mon Aug 9 17:43:57 CEST 2010


Module: sip-router
Branch: andrei/counters
Commit: 92e30a1e983e99c236ab64fdf2f90bed85ea58cd
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=92e30a1e983e99c236ab64fdf2f90bed85ea58cd

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Mon Aug  9 17:12:08 2010 +0200

sercmd: cnt.help command line completion support

Command line completion support for counter groups and names when
using cnt.help.

---

 utils/sercmd/sercmd.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/utils/sercmd/sercmd.c b/utils/sercmd/sercmd.c
index 94dc390..a309b3f 100644
--- a/utils/sercmd/sercmd.c
+++ b/utils/sercmd/sercmd.c
@@ -352,6 +352,7 @@ char* complete_param1_counter_grp[] = {
 	"cnt.grp_get_all",
 	"cnt.reset",
 	"cnt.var_list",
+	"cnt.help",
 	0
 };
 
@@ -360,6 +361,7 @@ char* complete_param2_counter_name[] = {
 	"cnt.get",
 	"cnt.get_raw",
 	"cnt.reset",
+	"cnt.help",
 	0
 };
 #endif /* USE_COUNTERS */




More information about the sr-dev mailing list