From 0800db775a4da41507478a02fa8cb9e58f35b0c9 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 27 Feb 2014 19:01:09 +0000 Subject: db_mc_isMeta / db_mc_isSub - first functions of the new cache-based MC layer git-svn-id: http://svn.miranda-ng.org/main/trunk@8311 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/m_metacontacts.h | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'include/m_metacontacts.h') diff --git a/include/m_metacontacts.h b/include/m_metacontacts.h index 541dfc0251..94cda43bd8 100644 --- a/include/m_metacontacts.h +++ b/include/m_metacontacts.h @@ -3,8 +3,8 @@ Miranda NG: the free IM client for Microsoft* Windows* Copyright (c) 2012-14 Miranda NG project (http://miranda-ng.org), +Copyright (c) 2004-07 Scott Ellis (www.scottellis.com.au mail@scottellis.com.au) Copyright (c) 2004 Universite Louis PASTEUR, STRASBOURG. -Copyright (c) 2004 Scott Ellis (www.scottellis.com.au mail@scottellis.com.au) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -24,6 +24,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef M_METACONTACTS_H__ #define M_METACONTACTS_H__ 1 +#include + //get the handle for a contact's parent metacontact //wParam=(HANDLE)hSubContact //lParam=0 @@ -160,4 +162,22 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // before the metacontact onmodulesloaded handler where the subcontact hiding is usually done) #define MS_MC_DISABLEHIDDENGROUP "MetaContacts/DisableHiddenGroup" +///////////////////////////////////////////////////////////////////////////////////////// +// binary interface to MC + +#if defined(__cplusplus) +extern "C" +{ +#endif + +// checks whether a contact is a metacontact +MIR_CORE_DLL(int) db_mc_isMeta(MCONTACT hContact); + +// checks whether a contact is a subcontact of existing MC +MIR_CORE_DLL(int) db_mc_isSub(MCONTACT hContact); + +#if defined(__cplusplus) +} +#endif + #endif -- cgit v1.2.3