diff options
author | Richard Mudgett <rmudgett@digium.com> | 2013-07-19 23:30:10 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2013-07-19 23:30:10 +0000 |
commit | 643fb1ed1400a5c32177a40dbfcba943d6f989d7 (patch) | |
tree | 7d5bf745f1ff9357f999f1786ce60166ad04e79d /include | |
parent | 2838683742cd21a452298801e41e85cd890add06 (diff) |
Minor optimizations.
* Made ast_audiohook_detach_list() and ast_audiohook_write_list_empty()
NULL tolerant.
* Made ast_audiohook_detach_list() return void since it is a destructor.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@394836 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/audiohook.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/include/asterisk/audiohook.h b/include/asterisk/audiohook.h index 516c59f6d..1a4e4696a 100644 --- a/include/asterisk/audiohook.h +++ b/include/asterisk/audiohook.h @@ -175,11 +175,12 @@ int ast_audiohook_attach(struct ast_channel *chan, struct ast_audiohook *audioho */ int ast_audiohook_detach(struct ast_audiohook *audiohook); -/*! \brief Detach audiohooks from list and destroy said list - * \param audiohook_list List of audiohooks - * \return Returns 0 on success, -1 on failure +/*! + * \brief Detach audiohooks from list and destroy said list + * \param audiohook_list List of audiohooks (NULL tolerant) + * \return Nothing */ -int ast_audiohook_detach_list(struct ast_audiohook_list *audiohook_list); +void ast_audiohook_detach_list(struct ast_audiohook_list *audiohook_list); /*! \brief Move an audiohook from one channel to a new one * @@ -221,7 +222,9 @@ int ast_audiohook_detach_source(struct ast_channel *chan, const char *source); int ast_audiohook_remove(struct ast_channel *chan, struct ast_audiohook *audiohook); /*! - * \brief determines if a audiohook_list is empty or not. + * \brief Determine if a audiohook_list is empty or not. + * + * \param audiohook Audiohook to check. (NULL also means empty) * * retval 0 false, 1 true */ |