summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJenkins2 <jenkins2@gerrit.asterisk.org>2017-05-26 09:12:11 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2017-05-26 09:12:11 -0500
commitd4ccd3a6c088f4d2fefda1a44e4555dd54335cda (patch)
treea2cdff9821aa83e77dd8b0e3039e844ae0fe310f /include
parent5715360ba5606747f244421d63edb1cf06672381 (diff)
parent161820396495a549c9a378d32136cbb5f28ef2af (diff)
Merge "asterisk: Audit locking of channel when manipulating flags." into 13
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/channel.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h
index 9acd820e5..393c020fc 100644
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
@@ -4330,6 +4330,31 @@ void ast_channel_dialed_causes_clear(const struct ast_channel *chan);
struct ast_flags *ast_channel_flags(struct ast_channel *chan);
/*!
+ * \since 13.17.0
+ * \brief Set a flag on a channel
+ *
+ * \param chan The channel to set the flag on
+ * \param flag The flag to set
+ *
+ * \note This will lock the channel internally. If the channel is already
+ * locked it is still safe to call.
+ */
+
+void ast_channel_set_flag(struct ast_channel *chan, unsigned int flag);
+
+/*!
+ * \since 13.17.0
+ * \param Clear a flag on a channel
+ *
+ * \param chan The channel to clear the flag from
+ * \param flag The flag to clear
+ *
+ * \note This will lock the channel internally. If the channel is already
+ * locked it is still safe to call.
+ */
+void ast_channel_clear_flag(struct ast_channel *chan, unsigned int flag);
+
+/*!
* \since 12.4.0
* \brief Return whether or not any manager variables have been set
*