From 5dbe3cb375f54da70a80cf1a2cbc94836f82eeaa Mon Sep 17 00:00:00 2001
From: George Hazan <george.hazan@gmail.com>
Date: Fri, 21 Jun 2013 13:54:41 +0000
Subject: new helper ProtoCallService - simply glues module & service name, and
 then simplyu calls CallService()

git-svn-id: http://svn.miranda-ng.org/main/trunk@5077 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
---
 include/delphi/m_core.inc | 3 +++
 include/m_core.h          | 1 +
 2 files changed, 4 insertions(+)

(limited to 'include')

diff --git a/include/delphi/m_core.inc b/include/delphi/m_core.inc
index 2ab7632acc..c7f7dc6428 100644
--- a/include/delphi/m_core.inc
+++ b/include/delphi/m_core.inc
@@ -524,6 +524,9 @@ function mir_vsntprintf(buffer:pWideChar;count:size_t;fmt:pWideChar;va:va_list):
 function ProtoBroadcastAck(const szModule: PAnsiChar; hContact: THandle; type_: int; result_: int; hProcess: THandle; lParam: LPARAM): int_ptr; stdcall;
                  external CoreDLL name 'ProtoBroadcastAck';
 
+function ProtoCallService(const szModule, szName:PAnsiChar; wParam:WPARAM; lParam:LPARAM):int_ptr; stdcall;
+                 external CoreDLL name 'ProtoServiceExists';
+
 function ProtoServiceExists(const szModule, szName:PAnsiChar):int; stdcall;
                  external CoreDLL name 'ProtoServiceExists';
 
diff --git a/include/m_core.h b/include/m_core.h
index 7e3c4ea99f..1cb48af582 100644
--- a/include/m_core.h
+++ b/include/m_core.h
@@ -433,6 +433,7 @@ MIR_CORE_DLL(int)    mir_vsntprintf(TCHAR *buffer, size_t count, const TCHAR* fm
 ///////////////////////////////////////////////////////////////////////////////
 // protocol functions
 
+MIR_CORE_DLL(INT_PTR) ProtoCallService(const char *szModule, const char *szService, WPARAM wParam, LPARAM lParam);
 MIR_CORE_DLL(int)     ProtoServiceExists(const char *szModule, const char *szService);
 MIR_CORE_DLL(INT_PTR) ProtoBroadcastAck(const char *szModule, HANDLE hContact, int type, int result, HANDLE hProcess, LPARAM lParam);
 
-- 
cgit v1.2.3