summaryrefslogtreecommitdiff
path: root/include/asterisk
diff options
context:
space:
mode:
Diffstat (limited to 'include/asterisk')
-rw-r--r--include/asterisk/channel.h25
-rw-r--r--include/asterisk/test.h8
2 files changed, 33 insertions, 0 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h
index fd339d974..005803d5c 100644
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
@@ -4437,6 +4437,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
*
diff --git a/include/asterisk/test.h b/include/asterisk/test.h
index 49731feb6..90e772cbc 100644
--- a/include/asterisk/test.h
+++ b/include/asterisk/test.h
@@ -241,6 +241,14 @@ struct ast_test_info {
* \note The description must not end with a newline.
*/
const char *description;
+ /*!
+ * \brief Only run if explicitly named
+ *
+ * \details
+ * Run this test only if it's explicitly named on the command line.
+ * Do NOT run it as part of an execute category or execute all command.
+ */
+ unsigned int explicit_only;
};
#ifdef TEST_FRAMEWORK