]> 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:33 +0000 (14:18 -0600)
commitf1975769a78c396742240e70edc0cc1aa9d9aaa8
tree0af78f025cd9324e51745e04c238721be7f9b675
parent2304103f3a71cf35f85fae8d71a69e7b4fbd7e15
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