Add red-black tree container type to astobj2.
authorRichard Mudgett <rmudgett@digium.com>
Wed, 21 Nov 2012 18:33:16 +0000 (18:33 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 21 Nov 2012 18:33:16 +0000 (18:33 +0000)
commit4ccf2c7aa5e8be4a7f38170c3e7a3d1fa5beed9c
tree3cd809184b0d4490e359f6f23a32a8071f092880
parentcc01a794631bcd794ff84dd31f466562c9464f3e
Add red-black tree container type to astobj2.

* Add red-black tree container type.

* Add CLI command "astobj2 container dump <name>"

* Added ao2_container_dump() so the container could be dumped by other
modules for debugging purposes.

* Changed ao2_container_stats() so it can be used by other modules like
ao2_container_check() for debugging purposes.

* Updated the unit tests to check red-black tree containers.

(closes issue ASTERISK-19970)
Reported by: rmudgett
Tested by: rmudgett

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

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