diff options
author | George Joseph <george.joseph@fairview5.com> | 2014-06-06 14:12:57 +0000 |
---|---|---|
committer | George Joseph <george.joseph@fairview5.com> | 2014-06-06 14:12:57 +0000 |
commit | 077c4187d9789eaf585568f8178f5e3a470ab781 (patch) | |
tree | 9931ba097213a1f9cacf69b49500666bbd8140b9 /include/asterisk/astobj2.h | |
parent | 4e292ea3af5484b10b6df9dddf6b718f3efc3d20 (diff) |
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
Diffstat (limited to 'include/asterisk/astobj2.h')
-rw-r--r-- | include/asterisk/astobj2.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asterisk/astobj2.h b/include/asterisk/astobj2.h index 2a683cdc2..d113cb38c 100644 --- a/include/asterisk/astobj2.h +++ b/include/asterisk/astobj2.h @@ -522,6 +522,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. * |