diff options
Diffstat (limited to 'include/asterisk/chanspy.h')
-rw-r--r-- | include/asterisk/chanspy.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asterisk/chanspy.h b/include/asterisk/chanspy.h index dd8d79edf..8550210d0 100644 --- a/include/asterisk/chanspy.h +++ b/include/asterisk/chanspy.h @@ -95,6 +95,15 @@ int ast_channel_spy_add(struct ast_channel *chan, struct ast_channel_spy *spy); void ast_channel_spy_remove(struct ast_channel *chan, struct ast_channel_spy *spy); /*! + \brief Free a spy. + \param spy The spy to free + \return nothing + + Note: This function MUST NOT be called with the spy locked. +*/ +void ast_channel_spy_free(struct ast_channel_spy *spy); + +/*! \brief Find all spies of a particular type on a channel and stop them. \param chan The channel to operate on \param type A character string identifying the type of spies to be stopped |