diff options
author | Mark Michelson <mmichelson@digium.com> | 2007-09-01 06:03:22 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2007-09-01 06:03:22 +0000 |
commit | 1bfe10997b8cd79015c49dba761ead9d623b1555 (patch) | |
tree | e2342fef56822534251ea9e6a6674600fcd2d694 /main/astobj2.c | |
parent | 5872c6d7571a1fb6bdeda7bb6a1ad10d74f61ccf (diff) |
Merged revisions 81426 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r81426 | mmichelson | 2007-09-01 01:02:06 -0500 (Sat, 01 Sep 2007) | 4 lines
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: https://origsvn.digium.com/svn/asterisk/trunk@81427 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/astobj2.c')
-rw-r--r-- | main/astobj2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/astobj2.c b/main/astobj2.c index 4f338af44..bd8480629 100644 --- a/main/astobj2.c +++ b/main/astobj2.c @@ -349,7 +349,7 @@ void *ao2_link(ao2_container *c, void *user_data) /*! * \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; } @@ -363,7 +363,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; } |