projects
/
asterisk/asterisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bridge_features: Support One touch Monitor/MixMonitor
[asterisk/asterisk.git]
/
include
/
asterisk
/
channel.h
diff --git
a/include/asterisk/channel.h
b/include/asterisk/channel.h
index
1b36c14
..
fae43d4
100644
(file)
--- a/
include/asterisk/channel.h
+++ b/
include/asterisk/channel.h
@@
-2596,6
+2596,17
@@
struct ast_group_info {
*/
#define ast_channel_unref(c) ({ ao2_ref(c, -1); (struct ast_channel *) (NULL); })
*/
#define ast_channel_unref(c) ({ ao2_ref(c, -1); (struct ast_channel *) (NULL); })
+/*!
+ * \brief Cleanup a channel reference
+ *
+ * \param c the channel (NULL tolerant)
+ *
+ * \retval NULL always
+ *
+ * \since 12.0.0
+ */
+#define ast_channel_cleanup(c) ({ ao2_cleanup(c); (struct ast_channel *) (NULL); })
+
/*! Channel Iterating @{ */
/*!
/*! Channel Iterating @{ */
/*!