From 5e9e63c45e37917ffb0acd83832d0d8f99d01883 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 28 Nov 2012 17:38:49 +0000 Subject: new macroses for MS_PROTO_CHAINRECV: ProtoChainRecv, ProtoChainRecvMsg & ProtoChainRecvFile git-svn-id: http://svn.miranda-ng.org/main/trunk@2540 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/m_protomod.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'include') diff --git a/include/m_protomod.h b/include/m_protomod.h index 13dd93e5fb..d8d364b987 100644 --- a/include/m_protomod.h +++ b/include/m_protomod.h @@ -31,6 +31,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include #include "m_protocols.h" +#include "m_protosvc.h" //notify the protocol manager that you're around //wParam = 0 @@ -99,6 +100,21 @@ __forceinline HANDLE CreateProtoServiceFunction(const char *szModule, const char //differences between threads the functions are in. #define MS_PROTO_CHAINRECV "Proto/ChainRecv" +__forceinline INT_PTR ProtoChainRecv(HANDLE hContact, char *szService, WPARAM wParam, LPARAM lParam) +{ CCSDATA ccs = { hContact, szService, wParam, lParam }; + return CallService(MS_PROTO_CHAINRECV, 0, (LPARAM)&ccs); +} + +__forceinline INT_PTR ProtoChainRecvMsg(HANDLE hContact, PROTORECVEVENT *pre) +{ CCSDATA ccs = { hContact, PSR_MESSAGE, 0, (LPARAM)pre }; + return CallService(MS_PROTO_CHAINRECV, 0, (LPARAM)&ccs); +} + +__forceinline INT_PTR ProtoChainRecvFile(HANDLE hContact, PROTORECVFILET *pre) +{ CCSDATA ccs = { hContact, PSR_FILE, 0, (LPARAM)pre }; + return CallService(MS_PROTO_CHAINRECV, 0, (LPARAM)&ccs); +} + //Broadcast a ME_PROTO_ACK event //wParam = 0 //lParam = (LPARAM)(ACKDATA*)&ack @@ -106,6 +122,7 @@ __forceinline HANDLE CreateProtoServiceFunction(const char *szModule, const char //Thread safety: me_proto_ack is completely thread safe since 0.1.2.0 //See the notes in core/modules.h under NotifyEventHooks() #define MS_PROTO_BROADCASTACK "Proto/BroadcastAck" + __forceinline INT_PTR ProtoBroadcastAck(const char *szModule, HANDLE hContact, int type, int result, HANDLE hProcess, LPARAM lParam) { ACKDATA ack = {0}; -- cgit v1.2.3