diff options
author | Mark Spencer <markster@digium.com> | 2005-10-16 16:11:52 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2005-10-16 16:11:52 +0000 |
commit | d2025ad2a1b5c23e70c7b02f5936220e722d6444 (patch) | |
tree | 19a26306a1e09c995d6c7e36ba45a5e32d045fed | |
parent | f5a38b387168625d42379de716f714bda5ae4f78 (diff) |
Add walk by channel name prefixed
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6800 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-x | channel.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -789,6 +789,12 @@ struct ast_channel *ast_get_channel_by_name_prefix_locked(const char *name, cons return channel_find_locked(NULL, name, namelen, NULL, NULL); } +/*--- ast_walk_channel_by_name_prefix_locked: Get next channel by name prefix and lock it */ +struct ast_channel *ast_walk_channel_by_name_prefix_locked(struct ast_channel *chan, const char *name, const int namelen) +{ + return channel_find_locked(chan, name, namelen, NULL, NULL); +} + /*--- ast_get_channel_by_exten_locked: Get channel by exten (and optionally context) and lock it */ struct ast_channel *ast_get_channel_by_exten_locked(const char *exten, const char *context) { |