8 #include "miranda-version.h"
9 #include "newpluginapi.h"
10 #include "m_protosvc.h"
11 #include "m_protoint.h"
13 #include "m_database.h"
14 #include "m_langpack.h"
15 #include "m_options.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
)
46 int RecvUrl( SIPPROTO
*pr
, HANDLE hContact
, PROTORECVEVENT
* evt
)
52 int SendContacts( SIPPROTO
*pr
, HANDLE hContact
, int flags
, int nContacts
, HANDLE
* hContactsList
)
55 SIPE_DEBUG_INFO("SendContacts: flags <%x> ncontacts <%x>", flags
, nContacts
);
59 int SendUrl( SIPPROTO
*pr
, HANDLE hContact
, int flags
, const char* url
)
62 SIPE_DEBUG_INFO("SendUrl: iflags <%x> url <%s>", flags
, url
);
66 int SetApparentMode( SIPPROTO
*pr
, HANDLE hContact
, int mode
)
69 SIPE_DEBUG_INFO("SetApparentMode: mode <%x>", mode
);
73 int RecvAwayMsg( SIPPROTO
*pr
, HANDLE hContact
, int mode
, PROTORECVEVENT
* evt
)
76 SIPE_DEBUG_INFO("RecvAwayMsg: mode <%x>", mode
);
80 int SendAwayMsg( SIPPROTO
*pr
, HANDLE hContact
, HANDLE hProcess
, const char* msg
)
83 SIPE_DEBUG_INFO("SendAwayMsg: msg <%s>", msg
);