summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-03-20 14:47:13 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-03-20 14:47:13 +0000
commit5289388e941bbdeca3d380c2f1044228e3397bc0 (patch)
tree47c9611377af3f3f41ecd65eaa1df5ff6bc9b97b /include
parent80578cde52fbd2e201ddc6717d689c6d71bf19a0 (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/delphi/m_metacontacts.inc8
-rw-r--r--include/m_metacontacts.h4
2 files changed, 12 insertions, 0 deletions
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);