From 5289388e941bbdeca3d380c2f1044228e3397bc0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 20 Mar 2014 14:47:13 +0000 Subject: db_mc_enable, db_mc_isEnabled - new functions to detect whether MC are used git-svn-id: http://svn.miranda-ng.org/main/trunk@8666 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/delphi/m_metacontacts.inc | 8 ++++++++ include/m_metacontacts.h | 4 ++++ 2 files changed, 12 insertions(+) (limited to 'include') diff --git a/include/delphi/m_metacontacts.inc b/include/delphi/m_metacontacts.inc index 6807a366f9..4ff361fa71 100644 --- a/include/delphi/m_metacontacts.inc +++ b/include/delphi/m_metacontacts.inc @@ -110,6 +110,14 @@ const ///////////////////////////////////////////////////////////////////////////////////////// // binary interface to MC +{ returns true if metacontacts are enabled or false otherwise } +function db_mc_isEnabled():bool; stdcall; + external CoreDLL name 'db_mc_isEnabled'; + +{ returns true if a contact is a metacontact or false otherwise } +procedure db_mc_enable(bEnabled:bool); stdcall; + external CoreDLL name 'db_mc_enable'; + { returns true if a contact is a metacontact or false otherwise } function db_mc_isMeta(hContact:TMCONTACT):int; stdcall; external CoreDLL name 'db_mc_isMeta'; diff --git a/include/m_metacontacts.h b/include/m_metacontacts.h index d050e685cd..fc09425ea9 100644 --- a/include/m_metacontacts.h +++ b/include/m_metacontacts.h @@ -70,6 +70,10 @@ extern "C" { #endif +// checks whether metacontacts are enabled +MIR_CORE_DLL(BOOL) db_mc_isEnabled(void); +MIR_CORE_DLL(void) db_mc_enable(BOOL); + // checks whether a contact is a metacontact MIR_CORE_DLL(int) db_mc_isMeta(MCONTACT hMetaContact); -- cgit v1.2.3