mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@415317 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user