]> 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:47:38 +0000 (09:47 -0500)
commit115f53a0fb19138f07ca0c03f06f4a557d663f1f
tree64f76356762f8da8752789e85ba1f739473007b7
parent0fd8db7ec24abfd84a4d9a87b7e677b06bf83e39
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