From 4095dc1815f82e9e0b61948958a268f86278206d Mon Sep 17 00:00:00 2001 From: file Date: Tue, 5 Sep 2006 20:02:48 +0000 Subject: Merge in last round of spy fixes. This should hopefully eliminate all the issues people have been seeing by distinctly separating what each component (core/spy) is responsible for. Core is responsible for adding a spy to a channel, feeding frames to the spy, removing the spy from a channel, and telling the spy to stop. Spy is responsible for reading frames in, and cleaning up after itself. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@42054 f38db490-d61c-443f-a65b-d21fe96a405b --- include/asterisk/chanspy.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') diff --git a/include/asterisk/chanspy.h b/include/asterisk/chanspy.h index dcdceccf7..c6a64f592 100644 --- a/include/asterisk/chanspy.h +++ b/include/asterisk/chanspy.h @@ -94,6 +94,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 -- cgit v1.2.3