From 118b277ab1356cfff943bbe3197dd8ab001cd9f8 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Thu, 16 Feb 2006 17:37:03 +0000 Subject: add StopMixMonitor application (issue #6122, with mods) Rename and export ast_complete_channels for use by cli completion functions that want to complete from the list of active channels git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10287 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/cli.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') diff --git a/include/asterisk/cli.h b/include/asterisk/cli.h index 884d4c166..d230efe97 100644 --- a/include/asterisk/cli.h +++ b/include/asterisk/cli.h @@ -132,6 +132,15 @@ int ast_cli_generatornummatches(const char *, const char *); */ char **ast_cli_completion_matches(const char *, const char *); +/*! + * \brief Command completion for the list of active channels + * + * This can be called from a CLI command completion function that wants to + * complete from the list of active channels. 'rpos' is the required + * position in the command. This function will return NULL immediately if + * 'rpos' is not the same as the current position, 'pos'. + */ +char *ast_complete_channels(const char *line, const char *word, int pos, int state, int rpos); #if defined(__cplusplus) || defined(c_plusplus) } -- cgit v1.2.3