]> git.ipfire.org Git - thirdparty/asterisk.git/commit
CLI: Create ast_cli_completion_vector.
authorCorey Farrell <git@cfware.com>
Tue, 7 Nov 2017 23:07:35 +0000 (18:07 -0500)
committerCorey Farrell <git@cfware.com>
Fri, 17 Nov 2017 14:30:04 +0000 (09:30 -0500)
commit2849538b8ee4f2a096b8f22426095423dbeb5991
tree43e851ac63b2a07eb0793409f0ef7dc64932d75a
parent536e4a31b73c1cb9282008304a4b4a2cf10e66ee
CLI: Create ast_cli_completion_vector.

This is a rewrite of ast_cli_completion_matches using a vector to build
the list.  The original function calls the vector version, NULL
terminates the vector and extracts the elements array.

One change in behavior the results are now sorted and deduplicated. This
will solve bugs where some duplicate checking was done before the list
was sorted.

Change-Id: Iede20c5b4d965fa5ec71fda136ce9425eeb69519
include/asterisk/cli.h
main/cli.c