From: <do...@us...> - 2007-11-02 17:07:22
|
Revision: 1262 http://iaxclient.svn.sourceforge.net/iaxclient/?rev=1262&view=rev Author: dohpaz Date: 2007-11-02 10:07:22 -0700 (Fri, 02 Nov 2007) Log Message: ----------- Add ability to send text to a particular call. Modified Paths: -------------- branches/team/elbunce/iaxclient/lib/iaxclient.h branches/team/elbunce/iaxclient/lib/iaxclient_lib.c Modified: branches/team/elbunce/iaxclient/lib/iaxclient.h =================================================================== --- branches/team/elbunce/iaxclient/lib/iaxclient.h 2007-11-02 16:41:54 UTC (rev 1261) +++ branches/team/elbunce/iaxclient/lib/iaxclient.h 2007-11-02 17:07:22 UTC (rev 1262) @@ -861,6 +861,11 @@ EXPORT void iaxc_send_text(const char * text); /*! + Sends \a text to call \a callNo +*/ +EXPORT void iaxc_send_text_call(int callNo, const char * text); + +/*! Sends a URL across the currently selected call \param url The URL to send across. \param link If non-zero the URL is a link Modified: branches/team/elbunce/iaxclient/lib/iaxclient_lib.c =================================================================== --- branches/team/elbunce/iaxclient/lib/iaxclient_lib.c 2007-11-02 16:41:54 UTC (rev 1261) +++ branches/team/elbunce/iaxclient/lib/iaxclient_lib.c 2007-11-02 17:07:22 UTC (rev 1262) @@ -1501,6 +1501,17 @@ } } +EXPORT void iaxc_send_text_call(int callNo, const char * text) +{ + if ( callNo < 0 || !(calls[callNo].state & IAXC_CALL_STATE_ACTIVE) ) + return; + + get_iaxc_lock(); + if ( calls[callNo].state & IAXC_CALL_STATE_ACTIVE ) + iax_send_text(calls[callNo].session, text); + put_iaxc_lock(); +} + EXPORT void iaxc_send_url(const char * url, int link) { if ( selected_call >= 0 ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |