summaryrefslogtreecommitdiff
path: root/include/m_metacontacts.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-07-19 13:19:40 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-07-19 13:19:40 +0000
commite4a8fd6f323b262018bae68bfe87da65cf2092c0 (patch)
tree6fbc3bcfd9bec6c9b0d80fbf99a3a312896a0a24 /include/m_metacontacts.h
parente1d41f2f0796cae67948450c3ec6e342b46c1a0b (diff)
db_mc_tryMeta - returns parent hContact for a subcontact or hContact itself if it's not a sub
git-svn-id: http://svn.miranda-ng.org/main/trunk@9859 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/m_metacontacts.h')
-rw-r--r--include/m_metacontacts.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/m_metacontacts.h b/include/m_metacontacts.h
index 9ba80dd801..22bc991815 100644
--- a/include/m_metacontacts.h
+++ b/include/m_metacontacts.h
@@ -101,9 +101,12 @@ MIR_CORE_DLL(int) db_mc_getDefaultNum(MCONTACT hMetaContact);
//returns the number of subcontacts, or -1 on failure
MIR_CORE_DLL(int) db_mc_getSubCount(MCONTACT hMetaContact);
-// returns parent hContact for a subcontact or INVALID_CONTACT_ID if it's not a sub
+// returns parent hContact for a subcontact or NULL if it's not a sub
MIR_CORE_DLL(MCONTACT) db_mc_getMeta(MCONTACT hSubContact);
+// returns parent hContact for a subcontact or hContact itself if it's not a sub
+MIR_CORE_DLL(MCONTACT) db_mc_tryMeta(MCONTACT hContact);
+
// returns a subcontact with the given index
MIR_CORE_DLL(MCONTACT) db_mc_getSub(MCONTACT hMetaContact, int iNum);