]> 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:28:43 +0000 (09:28 -0500)
commit0b8b153d3c30f192725dcf3640f716331b24640f
treedac23869f08b4fe235954ce086ee0ef9c83ae349
parent2e9c7f9b8f080a4b5847da690633fd090c842088
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