Review Board 1.7.16


Add ability to pass arbitrary data to ao2 callbacks

Review Request #36 - Created Nov. 6, 2008 and submitted

Sean Bright
Reviewers
asterisk-dev
Asterisk
When going through the nested function cleanup, we came across a situation where we needed to pass an arbitrary data structure an ao2 callback where OBJ_POINTER was being passed (meaning that the passed 'arg' had to be hashable).  There are a couple of hacky ways around this, but a few of us (russell, mark m. and kevin) thought it would be better to add another argument to ao2_callback.  This patch *starts* that process, the names and faces will probably change, but I just wanted to get something up here as a starting point.

 
Review request changed
Updated (Nov. 7, 2008, 3:48 a.m.)
Updated the patch to include the optional argument to ao2_find as well.
Ship it!
Posted (Nov. 7, 2008, 5:51 a.m.)
Looks good by me. Once this is committed, http://reviewboard.digium.com/r/33 will be nearly done as well. Cool!

https://reviewboard.asterisk.org/ runs on a server provided by Digium, Inc. and uses bandwidth donated to the open source Asterisk community by API Digital Communications in Huntsville, AL USA.
Please report problems with this site to asteriskteam@digium.com.