summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-01-16 17:49:54 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-01-16 17:49:54 +0000
commit85c0b6a96f366bdf0ca334ee7cb1877fb3f2288c (patch)
treefe07935255b7432938f282419c3ab1378524c02f /src/mir_core
parent8a09c895c4cd0e9cc87c38181ae2913dba77c30b (diff)
MEVENT - the strict type for events, they are not HANDLE anymore
git-svn-id: http://svn.miranda-ng.org/main/trunk@11866 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/src/db.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mir_core/src/db.cpp b/src/mir_core/src/db.cpp
index 85c11345f2..7f723a21cf 100644
--- a/src/mir_core/src/db.cpp
+++ b/src/mir_core/src/db.cpp
@@ -256,7 +256,7 @@ MIR_CORE_DLL(INT_PTR) db_set_blob(MCONTACT hContact, const char *szModule, const
/////////////////////////////////////////////////////////////////////////////////////////
// events
-MIR_CORE_DLL(HANDLE) db_event_add(MCONTACT hContact, DBEVENTINFO *dbei)
+MIR_CORE_DLL(MEVENT) db_event_add(MCONTACT hContact, DBEVENTINFO *dbei)
{
return (currDb == NULL) ? 0 : currDb->AddEvent(hContact, dbei);
}
@@ -266,52 +266,52 @@ MIR_CORE_DLL(int) db_event_count(MCONTACT hContact)
return (currDb == NULL) ? 0 : currDb->GetEventCount(hContact);
}
-MIR_CORE_DLL(int) db_event_delete(MCONTACT hContact, HANDLE hDbEvent)
+MIR_CORE_DLL(int) db_event_delete(MCONTACT hContact, MEVENT hDbEvent)
{
return (currDb == NULL) ? 0 : currDb->DeleteEvent(hContact, hDbEvent);
}
-MIR_CORE_DLL(HANDLE) db_event_first(MCONTACT hContact)
+MIR_CORE_DLL(MEVENT) db_event_first(MCONTACT hContact)
{
return (currDb == NULL) ? 0 : currDb->FindFirstEvent(hContact);
}
-MIR_CORE_DLL(HANDLE) db_event_firstUnread(MCONTACT hContact)
+MIR_CORE_DLL(MEVENT) db_event_firstUnread(MCONTACT hContact)
{
return (currDb == NULL) ? 0 : currDb->FindFirstUnreadEvent(hContact);
}
-MIR_CORE_DLL(int) db_event_get(HANDLE hDbEvent, DBEVENTINFO *dbei)
+MIR_CORE_DLL(int) db_event_get(MEVENT hDbEvent, DBEVENTINFO *dbei)
{
return (currDb == NULL) ? 1 : currDb->GetEvent(hDbEvent, dbei);
}
-MIR_CORE_DLL(int) db_event_getBlobSize(HANDLE hDbEvent)
+MIR_CORE_DLL(int) db_event_getBlobSize(MEVENT hDbEvent)
{
return (currDb == NULL) ? 0 : currDb->GetBlobSize(hDbEvent);
}
-MIR_CORE_DLL(MCONTACT) db_event_getContact(HANDLE hDbEvent)
+MIR_CORE_DLL(MCONTACT) db_event_getContact(MEVENT hDbEvent)
{
return (currDb == NULL) ? 0 : currDb->GetEventContact(hDbEvent);
}
-MIR_CORE_DLL(HANDLE) db_event_last(MCONTACT hContact)
+MIR_CORE_DLL(MEVENT) db_event_last(MCONTACT hContact)
{
return (currDb == NULL) ? 0 : currDb->FindLastEvent(hContact);
}
-MIR_CORE_DLL(int) db_event_markRead(MCONTACT hContact, HANDLE hDbEvent)
+MIR_CORE_DLL(int) db_event_markRead(MCONTACT hContact, MEVENT hDbEvent)
{
return (currDb == NULL) ? 0 : currDb->MarkEventRead(hContact, hDbEvent);
}
-MIR_CORE_DLL(HANDLE) db_event_next(MCONTACT hContact, HANDLE hDbEvent)
+MIR_CORE_DLL(MEVENT) db_event_next(MCONTACT hContact, MEVENT hDbEvent)
{
return (currDb == NULL) ? 0 : currDb->FindNextEvent(hContact, hDbEvent);
}
-MIR_CORE_DLL(HANDLE) db_event_prev(MCONTACT hContact, HANDLE hDbEvent)
+MIR_CORE_DLL(MEVENT) db_event_prev(MCONTACT hContact, MEVENT hDbEvent)
{
return (currDb == NULL) ? 0 : currDb->FindPrevEvent(hContact, hDbEvent);
}