From 0173277372e2962b8f5703a0ebad7892dda15e6c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 9 Mar 2014 21:50:49 +0000 Subject: end of the old MC API git-svn-id: http://svn.miranda-ng.org/main/trunk@8534 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/New_GPG/src/metacontacts.cpp | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'plugins/New_GPG/src/metacontacts.cpp') diff --git a/plugins/New_GPG/src/metacontacts.cpp b/plugins/New_GPG/src/metacontacts.cpp index 9896393cbc..d730dae4b0 100644 --- a/plugins/New_GPG/src/metacontacts.cpp +++ b/plugins/New_GPG/src/metacontacts.cpp @@ -27,7 +27,7 @@ bool metaIsProtoMetaContacts(MCONTACT hContact) bool metaIsDefaultSubContact(MCONTACT hContact) { - return (MCONTACT)CallService(MS_MC_GETDEFAULTCONTACT, db_mc_getMeta(hContact), 0) == hContact; + return db_mc_getDefault(db_mc_getMeta(hContact)) == hContact; } MCONTACT metaGetContact(MCONTACT hContact) @@ -44,19 +44,9 @@ MCONTACT metaGetMostOnline(MCONTACT hContact) return NULL; } -MCONTACT metaGetDefault(MCONTACT hContact) +MCONTACT db_mc_getDefault(MCONTACT hContact) { if(metaIsProtoMetaContacts(hContact)) - return (MCONTACT)CallService(MS_MC_GETDEFAULTCONTACT,hContact,0); + return db_mc_getDefault(hContact); return NULL; } - -DWORD metaGetContactsNum(MCONTACT hContact) -{ - return CallService(MS_MC_GETNUMCONTACTS, hContact, 0); -} - -MCONTACT metaGetSubcontact(MCONTACT hContact, int num) -{ - return (MCONTACT)CallService(MS_MC_GETSUBCONTACT, hContact, (LPARAM)num); -} -- cgit v1.2.3