diff options
author | pescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7> | 2010-01-18 01:07:16 +0000 |
---|---|---|
committer | pescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7> | 2010-01-18 01:07:16 +0000 |
commit | 6342ef9ae683c0080abd3d8fdb46d2a36c594063 (patch) | |
tree | 176a6f5bae5cc9f447bb187575ed56161f86218a /Protocols/SIP/m_sip.h | |
parent | a36ca1b4d5d0c89b09382ac4215681b47865bea1 (diff) |
sip: Client API
git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@211 c086bb3d-8645-0410-b8da-73a8550f86e7
Diffstat (limited to 'Protocols/SIP/m_sip.h')
-rw-r--r-- | Protocols/SIP/m_sip.h | 8 |
1 files changed, 4 insertions, 4 deletions
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);
|