diff options
author | George Hazan <ghazan@miranda.im> | 2018-01-31 17:51:08 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-01-31 17:51:08 +0300 |
commit | bdd6a8a6b981a019e6818230077567b4fb51604c (patch) | |
tree | f7d0160b8014b9ab939c280a955840323db6265f /include/m_protosvc.h | |
parent | 1124c2c24cde3fffa979b5d6e483a70d3cb75063 (diff) |
mir_app:
- structure renamed: PROTORECVFILET -> PROTORECVFILE;
- useless service MS_PROTO_AUTHRECV removed;
- Proto_AuthRecv() helper converted into a function.
Diffstat (limited to 'include/m_protosvc.h')
-rw-r--r-- | include/m_protosvc.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/include/m_protosvc.h b/include/m_protosvc.h index e6c7177695..0ccd3d3c46 100644 --- a/include/m_protosvc.h +++ b/include/m_protosvc.h @@ -793,20 +793,17 @@ __forceinline INT_PTR ProtoChainRecvMsg(MCONTACT hContact, PROTORECVEVENT *pre) #define PSR_AUTH "/RecvAuth"
-#define MS_PROTO_AUTHRECV "Proto/AuthRecv"
-
-__forceinline INT_PTR Proto_AuthRecv(const char *szProtoName, PROTORECVEVENT *pcre)
-{ return CallService(MS_PROTO_AUTHRECV, (WPARAM)szProtoName, (LPARAM)pcre);
-}
+// adds the standard EVENTTYPE_AUTHREQUEST event to the database
+EXTERN_C MIR_APP_DLL(MEVENT) Proto_AuthRecv(const char *szProtoName, PROTORECVEVENT *pcre);
///////////////////////////////////////////////////////////////////////////////
// File(s) have been received
// wParam = 0
-// lParam = (LPARAM)(PROTORECVFILET*)&prf
+// lParam = (LPARAM)(PROTORECVFILE*)&prf
#define PRFF_UNICODE 1
-struct PROTORECVFILET
+struct PROTORECVFILE
{
DWORD dwFlags; // PRFF_*
DWORD timestamp; // unix time
@@ -820,13 +817,13 @@ struct PROTORECVFILET #define MS_PROTO_RECVFILET "Proto/RecvFileT"
-__forceinline INT_PTR Proto_RecvFile(MCONTACT hContact, PROTORECVFILET *pcre)
+__forceinline INT_PTR Proto_RecvFile(MCONTACT hContact, PROTORECVFILE *pcre)
{
CCSDATA ccs = { hContact, PSR_FILE, 0, (LPARAM)pcre };
return CallService(MS_PROTO_RECVFILET, 0, (LPARAM)&ccs);
}
-__forceinline INT_PTR ProtoChainRecvFile(MCONTACT hContact, PROTORECVFILET *pre)
+__forceinline INT_PTR ProtoChainRecvFile(MCONTACT hContact, PROTORECVFILE *pre)
{
CCSDATA ccs = { hContact, PSR_FILE, 0, (LPARAM)pre };
return Proto_ChainRecv(0, &ccs);
|