aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/cli.h
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-16 17:37:03 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-16 17:37:03 +0000
commit5f7ef687fa0de0bb079530b1990046de0de91280 (patch)
tree7d93735fff8f8e5e00f0f6bb57ca1f3712dbebbd /include/asterisk/cli.h
parent5134a87422a60e69eab2600f435e85f085a73463 (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: http://svn.digium.com/svn/asterisk/trunk@10287 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/cli.h')
-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)
}