summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-11-28 17:38:49 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-11-28 17:38:49 +0000
commit5e9e63c45e37917ffb0acd83832d0d8f99d01883 (patch)
tree1b674b85b1f582a13bd2a57ec73377b8989141bc /include
parent7105dcf75bdd939ca52ba045bc29c536c3f7ba49 (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/m_protomod.h17
1 files changed, 17 insertions, 0 deletions
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 <stdio.h>
#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};