diff options
author | George Hazan <george.hazan@gmail.com> | 2014-02-27 19:01:09 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-02-27 19:01:09 +0000 |
commit | 0800db775a4da41507478a02fa8cb9e58f35b0c9 (patch) | |
tree | 7472a040478be43bf27f27daa16c71c9794e5cb0 /include/m_metacontacts.h | |
parent | e7f9349e332baac6ae96a93ceca2a2611409966f (diff) |
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
Diffstat (limited to 'include/m_metacontacts.h')
-rw-r--r-- | include/m_metacontacts.h | 22 |
1 files changed, 21 insertions, 1 deletions
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 <m_core.h>
+
//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
|