From 6342ef9ae683c0080abd3d8fdb46d2a36c594063 Mon Sep 17 00:00:00 2001 From: pescuma Date: Mon, 18 Jan 2010 01:07:16 +0000 Subject: sip: Client API git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@211 c086bb3d-8645-0410-b8da-73a8550f86e7 --- Protocols/SIP/m_sip.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Protocols/SIP/m_sip.h') diff --git a/Protocols/SIP/m_sip.h b/Protocols/SIP/m_sip.h index 22b9e03..360912b 100644 --- a/Protocols/SIP/m_sip.h +++ b/Protocols/SIP/m_sip.h @@ -23,13 +23,14 @@ Boston, MA 02111-1307, USA. // state is a VOICE_STATE_* -typedef void (*SIPClientCallback)(void *param, int callId, int state, const TCHAR *name, const TCHAR *uri); +// flags are VOICE_* +// host_port can be NULL +typedef void (*SIPClientCallback)(void *param, int callId, int state, int flags, const TCHAR *host_port); struct SIP_REGISTRATION { int cbSize; const char *name; // Internal name of client - const TCHAR *username; int udp_port; // UDP port to be used: 0 means random, -1 means don't want UDP int tcp_port; // UDP port to be used: 0 means TCP, -1 means don't want TCP int tls_port; // UDP port to be used: 0 means TLS, -1 means don't want TLS @@ -44,7 +45,6 @@ struct SIP_REGISTRATION struct SIP_CLIENT { void *data; // Do not touch - const TCHAR *username; const TCHAR *host; const int udp_port; const int tcp_port; @@ -52,7 +52,7 @@ struct SIP_CLIENT // @param protocol 1 UDP, 2 TCP, 3 TLS // @return callId or <0 on error - int (*Call)(SIP_CLIENT *sip, const TCHAR *username, const TCHAR *host, int port, int protocol); + int (*Call)(SIP_CLIENT *sip, const TCHAR *host, int port, int protocol); // @return 0 on success int (*DropCall)(SIP_CLIENT *sip, int callId); -- cgit v1.2.3