diff options
author | Corey Farrell <git@cfware.com> | 2017-11-09 01:39:13 -0500 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2017-11-21 09:47:38 -0500 |
commit | 115f53a0fb19138f07ca0c03f06f4a557d663f1f (patch) | |
tree | 64f76356762f8da8752789e85ba1f739473007b7 /include | |
parent | 0fd8db7ec24abfd84a4d9a87b7e677b06bf83e39 (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/cli.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asterisk/cli.h b/include/asterisk/cli.h index 7bf473c61..0a05a4c11 100644 --- a/include/asterisk/cli.h +++ b/include/asterisk/cli.h @@ -282,6 +282,9 @@ int ast_cli_unregister_multiple(struct ast_cli_entry *e, int len); * Useful for readline, that's about it * \retval 0 on success * \retval -1 on failure + * + * Only call this function to proxy the CLI generator to + * another. */ char *ast_cli_generator(const char *, const char *, int); |