From 85c0b6a96f366bdf0ca334ee7cb1877fb3f2288c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 16 Jan 2015 17:49:54 +0000 Subject: 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 --- src/mir_core/src/db.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/mir_core') 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); } -- cgit v1.2.3