aboutsummaryrefslogtreecommitdiffstats
path: root/cli.c
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 /cli.c
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 'cli.c')
-rw-r--r--cli.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli.c b/cli.c
index 0afc66dd0..5915aade2 100644
--- a/cli.c
+++ b/cli.c
@@ -781,7 +781,7 @@ static char *complete_show_channels(const char *line, const char *word, int pos,
return NULL;
}
-static char *complete_ch_helper(const char *line, const char *word, int pos, int state, int rpos)
+char *ast_complete_channels(const char *line, const char *word, int pos, int state, int rpos)
{
struct ast_channel *c = NULL;
int which = 0;
@@ -809,12 +809,12 @@ static char *complete_ch_helper(const char *line, const char *word, int pos, int
static char *complete_ch_3(const char *line, const char *word, int pos, int state)
{
- return complete_ch_helper(line, word, pos, state, 2);
+ return ast_complete_channels(line, word, pos, state, 2);
}
static char *complete_ch_4(const char *line, const char *word, int pos, int state)
{
- return complete_ch_helper(line, word, pos, state, 3);
+ return ast_complete_channels(line, word, pos, state, 3);
}
static char *complete_mod_2(const char *line, const char *word, int pos, int state)