aboutsummaryrefslogtreecommitdiffstats
path: root/main/astobj2.c
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-01 06:02:06 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-01 06:02:06 +0000
commit9eda9cab0a7e8c668d3a3ac62af9be20d72578f1 (patch)
tree38a692730ad8549d9e5cd79af32f5b5e7769e423 /main/astobj2.c
parentcd184d2ed94ac03b65787170f1eb1e219cf1ce9f (diff)
Making match_by_addr into ao2_match_by_addr and making it available
everywhere since it could be a handy callback to have git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@81426 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/astobj2.c')
-rw-r--r--main/astobj2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/astobj2.c b/main/astobj2.c
index 8c3e19446..ecf8e38e6 100644
--- a/main/astobj2.c
+++ b/main/astobj2.c
@@ -352,7 +352,7 @@ void *__ao2_link(ao2_container *c, void *user_data, int iax2_hack)
/*!
* \brief another convenience function is a callback that matches on address
*/
-static int match_by_addr(void *user_data, void *arg, int flags)
+int ao2_match_by_addr(void *user_data, void *arg, int flags)
{
return (user_data == arg) ? (CMP_MATCH | CMP_STOP) : 0;
}
@@ -366,7 +366,7 @@ void *ao2_unlink(ao2_container *c, void *user_data)
if (INTERNAL_OBJ(user_data) == NULL) /* safety check on the argument */
return NULL;
- ao2_callback(c, OBJ_UNLINK | OBJ_POINTER | OBJ_NODATA, match_by_addr, user_data);
+ ao2_callback(c, OBJ_UNLINK | OBJ_POINTER | OBJ_NODATA, ao2_match_by_addr, user_data);
return NULL;
}