diff options
Diffstat (limited to 'include/asterisk')
-rw-r--r-- | include/asterisk/pbx.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/asterisk/pbx.h b/include/asterisk/pbx.h index d44a245e3..6da447034 100644 --- a/include/asterisk/pbx.h +++ b/include/asterisk/pbx.h @@ -1618,6 +1618,18 @@ void pbx_live_dangerously(int new_live_dangerously); */ int ast_thread_inhibit_escalations(void); +/*! + * \brief Swap the current thread escalation inhibit setting. + * \since 11.24.0 + * + * \param inhibit New setting. Non-zero to inhibit. + * + * \retval 1 if dangerous function execution was inhibited. + * \retval 0 if dangerous function execution was allowed. + * \retval -1 on error. + */ +int ast_thread_inhibit_escalations_swap(int inhibit); + #if defined(__cplusplus) || defined(c_plusplus) } #endif |