diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/delphi/m_metacontacts.inc | 8 | ||||
-rw-r--r-- | include/m_metacontacts.h | 4 |
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);
|