summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2017-11-09 01:39:13 -0500
committerCorey Farrell <git@cfware.com>2017-11-21 09:41:17 -0500
commit369e77d68b2239dd6d791642c4dae8a0a8cf7ddc (patch)
tree08b0c0fef3291c5e26900e96a18788dfc5360e6a /include
parent65606471dd904c08fc89b10d79de340f4ac24d2f (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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asterisk/cli.h b/include/asterisk/cli.h
index 3ed88eb61..51f077fa1 100644
--- a/include/asterisk/cli.h
+++ b/include/asterisk/cli.h
@@ -287,6 +287,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);