aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2008-11-09 01:59:59 +0000
committerseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2008-11-09 01:59:59 +0000
commit2034723f38d4ae9c8eb29f45c5611e834ff6cfa9 (patch)
tree5e7ff2cd6ece5b2ac5438a59b2737c5705b928cc /include
parent70ff546e20c930fe8c28001a7cef10d8ee569896 (diff)
In order to move away from nested function use, some changes to the recently introduced
ast_channel_search_locked need to be made. Specifically, the caller needs to be able to pass arbitrary data which in turn is passed to the callback. This patch addresses all of the nested functions currently in asterisk trunk. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@155590 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/channel.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h
index c1423462e..64aaca069 100644
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
@@ -1185,9 +1185,10 @@ struct ast_channel *ast_walk_channel_by_exten_locked(const struct ast_channel *c
* return 0 if there is no match, and non-zero if there is.
* \param is_match callback executed on each channel until non-zero is returned, or we
* run out of channels to search.
+ * \param data data passed to the is_match callback during each invocation.
* \return Returns the matched channel, or NULL if no channel was matched.
*/
-struct ast_channel *ast_channel_search_locked(int (*is_match)(struct ast_channel *));
+struct ast_channel *ast_channel_search_locked(int (*is_match)(struct ast_channel *, void *), void *data);
/*! ! \brief Waits for a digit
* \param c channel to wait for a digit on