From 077c4187d9789eaf585568f8178f5e3a470ab781 Mon Sep 17 00:00:00 2001 From: George Joseph Date: Fri, 6 Jun 2014 14:12:57 +0000 Subject: 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 --- include/asterisk/astobj2.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') 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 @@ -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. -- cgit v1.2.3