Add global ao2 array container.
authorRichard Mudgett <rmudgett@digium.com>
Tue, 27 Mar 2012 17:13:32 +0000 (17:13 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 27 Mar 2012 17:13:32 +0000 (17:13 +0000)
commit38e892b370c81382dab117ef0a3a1bd2104e9520
treef457d13a262cff01ee7f438f2d8b6e47070486ca
parent8611bea1224288c972a7b289ee1d18a5fa2001a4
Add global ao2 array container.

Global ao2 objects must always exist after initialization because there is
no access control to obtain another reference to the global object.

It is expected that module configuration could use these new API calls to
replace an active configuration parameter object with an updated
configuration parameter object.

With these new API calls, the global object could be replaced, removed, or
referenced without the risk of someone using a stale global object
pointer.

Review: https://reviewboard.asterisk.org/r/1824/

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@360627 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/astobj2.h
main/astobj2.c
tests/test_astobj2.c