From 683c656dd87e82ec9e2d05f72a7b7e1c7269bfd6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 15 Jun 2013 18:21:33 +0000 Subject: ProtoBroadcastAck - unified helper for all protocols git-svn-id: http://svn.miranda-ng.org/main/trunk@4962 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/m_protoint.h | 6 ++++++ include/m_protomod.h | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/m_protoint.h b/include/m_protoint.h index 471108ba55..0c457f03cc 100644 --- a/include/m_protoint.h +++ b/include/m_protoint.h @@ -25,6 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define M_PROTOINT_H__ 1 #include +#include typedef enum { @@ -53,6 +54,11 @@ struct PROTO_INTERFACE : public MZeroedObject char* m_szModuleName; HANDLE m_hProtoIcon; + DWORD __forceinline ProtoBroadcastAck(HANDLE hContact, int type, int hResult, HANDLE hProcess, LPARAM lParam) + { + return ::ProtoBroadcastAck(m_szModuleName, hContact, type, hResult, hProcess, lParam); + } + virtual HANDLE __cdecl AddToList(int flags, PROTOSEARCHRESULT* psr) = 0; virtual HANDLE __cdecl AddToListByEvent(int flags, int iContact, HANDLE hDbEvent) = 0; diff --git a/include/m_protomod.h b/include/m_protomod.h index d8d364b987..0bc0a073b4 100644 --- a/include/m_protomod.h +++ b/include/m_protomod.h @@ -30,8 +30,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include -#include "m_protocols.h" -#include "m_protosvc.h" +#include +#include //notify the protocol manager that you're around //wParam = 0 -- cgit v1.2.3