diff options
author | pescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7> | 2010-01-17 22:16:02 +0000 |
---|---|---|
committer | pescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7> | 2010-01-17 22:16:02 +0000 |
commit | 9bcf44d21b3a7588a267e98573396dbf2deceb12 (patch) | |
tree | b6b1f7c20d985faa61048b594224bcc6e0e5c722 /Protocols/SIP/SIPProto.h | |
parent | 838f03d71305a62e2372f6999d4aaf096c6a2145 (diff) |
sip: start of client plugins code
git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@209 c086bb3d-8645-0410-b8da-73a8550f86e7
Diffstat (limited to 'Protocols/SIP/SIPProto.h')
-rw-r--r-- | Protocols/SIP/SIPProto.h | 39 |
1 files changed, 3 insertions, 36 deletions
diff --git a/Protocols/SIP/SIPProto.h b/Protocols/SIP/SIPProto.h index 5c449de..5d3797f 100644 --- a/Protocols/SIP/SIPProto.h +++ b/Protocols/SIP/SIPProto.h @@ -27,38 +27,6 @@ typedef INT_PTR (__cdecl SIPProto::*SIPServiceFunc)(WPARAM, LPARAM); typedef INT_PTR (__cdecl SIPProto::*SIPServiceFuncParam)(WPARAM, LPARAM, LPARAM);
typedef int (__cdecl SIPProto::*SIPEventFunc)(WPARAM, LPARAM);
-struct MessageData
-{
- HANDLE hContact;
- LONG messageID;
- pjsip_status_code status;
-};
-
-struct SIPEvent
-{
- enum {
- reg_state,
- incoming_call,
- call_state,
- call_media_state,
- incoming_subscribe,
- buddy_state,
- pager,
- pager_status,
- typing
-
- } type;
-
- pjsua_call_id call_id;
- pjsua_call_info call_info;
- pjsua_buddy_id buddy_id;
- char *from;
- char *text;
- char *mime;
- bool isTyping;
- MessageData *messageData;
- pjsua_srv_pres *srv_pres;
-};
class SIPProto : public PROTO_INTERFACE
{
@@ -66,7 +34,9 @@ private: HANDLE hNetlibUser;
HANDLE hCallStateEvent;
bool hasToDestroy;
- pjsua_transport_id transport_id;
+ pjsua_transport_id udp_transport_id;
+ pjsua_transport_id tcp_transport_id;
+ pjsua_transport_id tls_transport_id;
pjsua_acc_id acc_id;
LONG messageID;
LONG awayMessageID;
@@ -228,9 +198,6 @@ private: void __cdecl GetAwayMsgThread(void* arg);
TCHAR *GetAwayMsg(int status);
INT_PTR __cdecl GetMyAwayMsg(WPARAM wParam, LPARAM lParam);
-
- // Static callbacks
- static void CALLBACK DisconnectProto(void *param);
};
|