diff options
author | Russell Bryant <russell@russellbryant.com> | 2009-04-29 08:51:21 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2009-04-29 08:51:21 +0000 |
commit | 2c1ffef923635f0ae81b628e409c56d172a72656 (patch) | |
tree | 818acc07b51ab0a68ebaf345d380fbe8a8568eed /include | |
parent | a082ad616f1c35e8a2449e27a45c08e36b862f86 (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/channel.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index eb28c1111..ad0e2ec4a 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -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 @{ */ |