]> git.ipfire.org Git - thirdparty/asterisk.git/commit
loader: Use ast_cli_completion_add for 'module load' completion.
authorCorey Farrell <git@cfware.com>
Thu, 25 Jan 2018 18:06:12 +0000 (13:06 -0500)
committerCorey Farrell <git@cfware.com>
Sat, 27 Jan 2018 20:18:39 +0000 (14:18 -0600)
commit154bccf147b54384a08df39167defbbe6cd2ad5a
tree44a1fa5905082ef140d3bcc3e98c7078db4dab69
parentede918524905fc6b6f6a866a1a414df303f15392
loader: Use ast_cli_completion_add for 'module load' completion.

This addresses all performance issues with 'module load' completion.  In
addition to using ast_cli_completion_add we stop using libedit's
filename_completion_function, instead using ast_file_read_dir.  This
ensures all results are produced from a single call to opendir.

Change-Id: I8bf51ffaa7ef1606f3bd1b5bb13f1905d72c6134
include/asterisk/file.h
main/Makefile
main/loader.c