mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-11 07:13:20 +00:00
Resolve Solaris build issues and add some API documentation.
(issue #14981) Reported by: snuffy git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@190989 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2073,8 +2073,27 @@ struct ast_group_info {
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
/*!
|
||||
* \brief Increase channel reference count
|
||||
*
|
||||
* \param c the channel
|
||||
*
|
||||
* \retval c always
|
||||
*
|
||||
* \since 1.6.3
|
||||
*/
|
||||
#define ast_channel_ref(c) ({ ao2_ref(c, +1); (c); })
|
||||
#define ast_channel_unref(c) ({ ao2_ref(c, -1); (NULL); })
|
||||
|
||||
/*!
|
||||
* \brief Decrease channel reference count
|
||||
*
|
||||
* \param c the channel
|
||||
*
|
||||
* \retval NULL always
|
||||
*
|
||||
* \since 1.6.3
|
||||
*/
|
||||
#define ast_channel_unref(c) ({ ao2_ref(c, -1); (struct ast_channel *) (NULL); })
|
||||
|
||||
/*! Channel Iterating @{ */
|
||||
|
||||
|
Reference in New Issue
Block a user