diff options
author | George Hazan <george.hazan@gmail.com> | 2014-02-27 20:50:07 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-02-27 20:50:07 +0000 |
commit | 13c033c257f6c083b0c46b4fa28601db5a0b6335 (patch) | |
tree | cb6c2d292df718d1cddd885ad1029a0b81f1b7e4 /include | |
parent | 367e673a5a3d4d49b2ef1bfbf57a1a5828a2d174 (diff) |
MS_MC_GETMETACONTACT => db_mc_getMeta
git-svn-id: http://svn.miranda-ng.org/main/trunk@8317 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include')
-rw-r--r-- | include/delphi/m_metacontacts.inc | 13 | ||||
-rw-r--r-- | include/m_metacontacts.h | 9 |
2 files changed, 8 insertions, 14 deletions
diff --git a/include/delphi/m_metacontacts.inc b/include/delphi/m_metacontacts.inc index 7ad2bf77d4..c25dfeadc2 100644 --- a/include/delphi/m_metacontacts.inc +++ b/include/delphi/m_metacontacts.inc @@ -22,14 +22,6 @@ {$DEFINE M_METACONTACTS}
const
- { get the handle for a contact's parent metacontact
- wParam=(HANDLE)hSubContact
- lParam=0
- returns a handle to the parent metacontact, or null if this contact is not
- a subcontact
- }
- MS_MC_GETMETACONTACT = 'MetaContacts/GetMeta';
-
{ gets the handle for the default contact
wParam=(HANDLE)hMetaContact
lParam=0
@@ -171,4 +163,9 @@ function db_mc_isMeta(hContact:MCONTACT):Integer; stdcall; function db_mc_isSub(hContact:MCONTACT):Integer; stdcall;
external CoreDLL name 'db_mc_isSub';
+{ returns a meta contact for a subcontact or 0 otherwise
+}
+function db_mc_getMeta(hContact:MCONTACT):MCONTACT; stdcall;
+ external CoreDLL name 'db_mc_getMeta';
+
{$ENDIF}
diff --git a/include/m_metacontacts.h b/include/m_metacontacts.h index 94cda43bd8..02d0fece6f 100644 --- a/include/m_metacontacts.h +++ b/include/m_metacontacts.h @@ -26,12 +26,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include <m_core.h>
-//get the handle for a contact's parent metacontact
-//wParam=(HANDLE)hSubContact
-//lParam=0
-//returns a handle to the parent metacontact, or null if this contact is not a subcontact
-#define MS_MC_GETMETACONTACT "MetaContacts/GetMeta"
-
//gets the handle for the default contact
//wParam=(HANDLE)hMetaContact
//lParam=0
@@ -176,6 +170,9 @@ 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);
+// returns parent hContact for a subcontact or INVALID_CONTACT_ID if it's not a sub
+MIR_CORE_DLL(MCONTACT) db_mc_getMeta(MCONTACT hSubContact);
+
#if defined(__cplusplus)
}
#endif
|