Add ability to pass arbitrary data to the ao2_callback_fn (called from
authorSean Bright <sean@malleable.com>
Fri, 7 Nov 2008 22:39:30 +0000 (22:39 +0000)
committerSean Bright <sean@malleable.com>
Fri, 7 Nov 2008 22:39:30 +0000 (22:39 +0000)
commit30d1744ffce823312d51379585e8c19f722ea4d6
tree80eea1f19a98b0f9ca3ab09f32d0eea8aa0f85d5
parentbd3f685f205c602554b84f458e6bc67a37d4d3c0
Add ability to pass arbitrary data to the ao2_callback_fn (called from
ao2_callback and ao2_find).  Currently, passing OBJ_POINTER to either
of these mandates that the passed 'arg' is a hashable object, making
searching for an ao2 object based on outside criteria difficult.

Reviewed by Russell and Mark M. via ReviewBoard:
    http://reviewboard.digium.com/r/36/

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@155401 65c4cc65-6c06-0410-ace0-fbb531ad65f3
14 files changed:
apps/app_queue.c
channels/chan_console.c
channels/chan_iax2.c
channels/chan_sip.c
funcs/func_dialgroup.c
include/asterisk/astobj2.h
main/astobj2.c
main/config.c
main/features.c
main/manager.c
main/taskprocessor.c
res/res_phoneprov.c
res/res_timing_pthread.c
utils/hashtest2.c