]> git.ipfire.org Git - thirdparty/asterisk.git/commit
CLI: Remove calls to ast_cli_generator.
authorCorey Farrell <git@cfware.com>
Thu, 9 Nov 2017 06:39:13 +0000 (01:39 -0500)
committerCorey Farrell <git@cfware.com>
Tue, 21 Nov 2017 14:41:17 +0000 (09:41 -0500)
commit369e77d68b2239dd6d791642c4dae8a0a8cf7ddc
tree08b0c0fef3291c5e26900e96a18788dfc5360e6a
parent65606471dd904c08fc89b10d79de340f4ac24d2f
CLI: Remove calls to ast_cli_generator.

The ability to add to localized storage cannot be supported by
ast_cli_generator.  The only calls to ast_cli_generator should be by
functions that need to proxy the CLI generator, for example 'cli check
permissions' or 'core show help'.

* ast_cli_generatornummatches now retrieves the vector of matches and
  reports the number of elements (not including 'best' match).
* test_substitution retrieves and iterates the vector.

Change-Id: I8cd6b93905363cf7a33a2d2b0e2a8f8446d9f248
include/asterisk/cli.h
main/cli.c
tests/test_substitution.c