Release 1.25.0 -- Buddy Idle Time, RTF
[siplcs.git] / src / miranda / sipe-miranda.c
blobaf8150621df0d14591a7273219cceddf601791dd
1 #include <windows.h>
2 #include <win2k.h>
3 #include <Richedit.h>
4 #include <process.h>
6 #include <glib.h>
8 #include "miranda-version.h"
9 #include "newpluginapi.h"
10 #include "m_protosvc.h"
11 #include "m_protoint.h"
12 #include "m_system.h"
13 #include "m_database.h"
14 #include "m_langpack.h"
15 #include "m_options.h"
16 #include "m_clist.h"
17 #include "m_chat.h"
18 #include "m_netlib.h"
19 #include "m_protomod.h"
21 #include "sipe-core.h"
22 #include "sipe-backend.h"
23 #include "miranda-private.h"
24 #include "miranda-resource.h"
26 /* Miranda interface globals */
28 void CreateProtoService(SIPPROTO *pr, const char* szService, SipSimpleServiceFunc serviceProc)
30 char str[ MAXMODULELABELLENGTH ];
32 mir_snprintf(str, sizeof(str), "%s%s", pr->proto.m_szModuleName, szService);
33 CreateServiceFunctionObj(str, (MIRANDASERVICEOBJ)*(void**)&serviceProc, pr);
36 /****************************************************************************
37 * Struct that defines our interface with libsipe
38 ****************************************************************************/
39 /* Protocol interface functions */
40 int RecvContacts( SIPPROTO *pr, HANDLE hContact, PROTORECVEVENT* evt )
42 _NIF();
43 return 0;
46 int RecvUrl( SIPPROTO *pr, HANDLE hContact, PROTORECVEVENT* evt )
48 _NIF();
49 return 0;
52 int SendContacts( SIPPROTO *pr, HANDLE hContact, int flags, int nContacts, HANDLE* hContactsList )
54 _NIF();
55 SIPE_DEBUG_INFO("SendContacts: flags <%x> ncontacts <%x>", flags, nContacts);
56 return 0;
59 int SendUrl( SIPPROTO *pr, HANDLE hContact, int flags, const char* url )
61 _NIF();
62 SIPE_DEBUG_INFO("SendUrl: iflags <%x> url <%s>", flags, url);
63 return 0;
66 int SetApparentMode( SIPPROTO *pr, HANDLE hContact, int mode )
68 _NIF();
69 SIPE_DEBUG_INFO("SetApparentMode: mode <%x>", mode);
70 return 0;
73 int RecvAwayMsg( SIPPROTO *pr, HANDLE hContact, int mode, PROTORECVEVENT* evt )
75 _NIF();
76 SIPE_DEBUG_INFO("RecvAwayMsg: mode <%x>", mode);
77 return 0;
80 int SendAwayMsg( SIPPROTO *pr, HANDLE hContact, HANDLE hProcess, const char* msg )
82 _NIF();
83 SIPE_DEBUG_INFO("SendAwayMsg: msg <%s>", msg);
84 return 0;