From 9bcf44d21b3a7588a267e98573396dbf2deceb12 Mon Sep 17 00:00:00 2001 From: pescuma Date: Sun, 17 Jan 2010 22:16:02 +0000 Subject: sip: start of client plugins code git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@209 c086bb3d-8645-0410-b8da-73a8550f86e7 --- Protocols/SIP/commons.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'Protocols/SIP/commons.h') diff --git a/Protocols/SIP/commons.h b/Protocols/SIP/commons.h index 47b4cfd..1fb4108 100644 --- a/Protocols/SIP/commons.h +++ b/Protocols/SIP/commons.h @@ -80,7 +80,46 @@ Boston, MA 02111-1307, USA. #include "../../plugins/voiceservice/m_voiceservice.h" #include "resource.h" +#include "strutils.h" + + +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; +}; + + +#include "m_sip.h" #include "SIPProto.h" +#include "SIPClient.h" #define MODULE_NAME "SIP" -- cgit v1.2.3