Split astobj2.c into more maintainable components.

Split astobj2.c into the following files to improve maintainability.

astobj2.c - object primitives, object primitive misc and initialization code.
astobj2_private.h - internal object declarations needed by the containers.
astobj2_container.c - generic conainer and container misc code.
astobj2_container_hash.c - hash container specific code.
astobj2_container_rbtree.c - rbtree container specific code.
astobj2_container_private.h - generic container definitions and rtti prototypes.

https://reviewboard.asterisk.org/r/3576/
........

Merged revisions 415317 from http://svn.asterisk.org/svn/asterisk/branches/12


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@415319 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
George Joseph
2014-06-06 14:12:57 +00:00
parent 4e292ea3af
commit 077c4187d9
8 changed files with 5015 additions and 4723 deletions

View File

@@ -521,6 +521,13 @@ void *__ao2_alloc(size_t data_size, ao2_destructor_fn destructor_fn, unsigned in
#endif
/*!
* \brief Retrieve the ao2 options used to create the object.
* \param obj pointer to the (user-defined part) of an object.
* \return options from enum ao2_alloc_opts.
*/
unsigned int ao2_options_get(void *obj);
/*!
* \since 12
* \brief Bump refcount on an AO2 object by one, returning the object.