summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2006-02-16 17:37:03 +0000
committerRussell Bryant <russell@russellbryant.com>2006-02-16 17:37:03 +0000
commit118b277ab1356cfff943bbe3197dd8ab001cd9f8 (patch)
tree7d93735fff8f8e5e00f0f6bb57ca1f3712dbebbd /include
parent2b357881a752b855614aad6beae24259f9c1b2d9 (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/cli.h9
1 files changed, 9 insertions, 0 deletions
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)
}