CLI: Create ast_cli_completion_add function.
authorCorey Farrell <git@cfware.com>
Thu, 9 Nov 2017 05:42:10 +0000 (00:42 -0500)
committerCorey Farrell <git@cfware.com>
Tue, 21 Nov 2017 14:39:19 +0000 (09:39 -0500)
commit9587a61f4c40d5d7911b1069f4fa353012018e2b
tree827c31eebbc86a642abe7411013097f047301de5
parenta02cbc2ef3903c68737fddee79d8db1d66623ab4
CLI: Create ast_cli_completion_add function.

Some completion generators are very inefficent due to the way CLI
requests matches one at a time.  ast_cli_completion_add can be called
multiple times during one invokation of a CLI generator to add all
results without having to reinitialize the search state for each match.

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