diff options
author | George Hazan <ghazan@miranda.im> | 2018-09-19 15:34:32 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-09-19 15:34:32 +0300 |
commit | 77ea5b95cd68a295068394e9d0c505f0b26221ba (patch) | |
tree | 5b3dca3184ba08a040df418bd638efbe8a9ed7c2 /plugins/Dbx_mdbx/src/dbcontacts.cpp | |
parent | 8dd934a1e0e80b1c14194195f4664bc9a6e685cc (diff) |
GetEventById & SetEventId - two new methods to operate with events by their server ids
Diffstat (limited to 'plugins/Dbx_mdbx/src/dbcontacts.cpp')
-rw-r--r-- | plugins/Dbx_mdbx/src/dbcontacts.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Dbx_mdbx/src/dbcontacts.cpp b/plugins/Dbx_mdbx/src/dbcontacts.cpp index 320b479984..4216d7da3e 100644 --- a/plugins/Dbx_mdbx/src/dbcontacts.cpp +++ b/plugins/Dbx_mdbx/src/dbcontacts.cpp @@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "stdafx.h"
-STDMETHODIMP_(LONG) CDbxMDBX::GetContactCount(void)
+LONG CDbxMDBX::GetContactCount(void)
{
MDBX_stat st;
txn_ptr_ro trnlck(m_txn_ro);
@@ -31,12 +31,12 @@ STDMETHODIMP_(LONG) CDbxMDBX::GetContactCount(void) return st.ms_entries;
}
-STDMETHODIMP_(LONG) CDbxMDBX::GetContactSize(void)
+LONG CDbxMDBX::GetContactSize(void)
{
return sizeof(DBCachedContact);
}
-STDMETHODIMP_(LONG) CDbxMDBX::DeleteContact(MCONTACT contactID)
+LONG CDbxMDBX::DeleteContact(MCONTACT contactID)
{
if (contactID == 0) // global contact cannot be removed
return 1;
@@ -84,7 +84,7 @@ STDMETHODIMP_(LONG) CDbxMDBX::DeleteContact(MCONTACT contactID) return 0;
}
-STDMETHODIMP_(MCONTACT) CDbxMDBX::AddContact()
+MCONTACT CDbxMDBX::AddContact()
{
MCONTACT dwContactId = InterlockedIncrement(&m_maxContactId);
|