From 6ea21b88c16c553aa97e2cd53266ffd4a689d581 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 25 Apr 2020 17:08:25 +0300 Subject: db_event_add / db_event_edit to receive const pointer to DBEVENTINFO --- src/mir_app/src/MDatabaseReadonly.cpp | 4 ++-- src/mir_app/src/mir_app.def | 4 ++-- src/mir_app/src/mir_app64.def | 4 ++-- src/mir_core/src/db.cpp | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/mir_app/src/MDatabaseReadonly.cpp b/src/mir_app/src/MDatabaseReadonly.cpp index 51dfcbf3ec..c5ab94fed6 100644 --- a/src/mir_app/src/MDatabaseReadonly.cpp +++ b/src/mir_app/src/MDatabaseReadonly.cpp @@ -66,7 +66,7 @@ LONG MDatabaseReadonly::GetContactSize(void) ///////////////////////////////////////////////////////////////////////////////////////// -MEVENT MDatabaseReadonly::AddEvent(MCONTACT, DBEVENTINFO*) +MEVENT MDatabaseReadonly::AddEvent(MCONTACT, const DBEVENTINFO*) { return 0; } @@ -76,7 +76,7 @@ BOOL MDatabaseReadonly::DeleteEvent(MEVENT) return 1; } -BOOL MDatabaseReadonly::EditEvent(MCONTACT, MEVENT, DBEVENTINFO*) +BOOL MDatabaseReadonly::EditEvent(MCONTACT, MEVENT, const DBEVENTINFO*) { return 1; } diff --git a/src/mir_app/src/mir_app.def b/src/mir_app/src/mir_app.def index ac47bef30c..8ba3de0e9b 100644 --- a/src/mir_app/src/mir_app.def +++ b/src/mir_app/src/mir_app.def @@ -575,7 +575,7 @@ Menu_SetVisible @662 Miranda_WaitOnHandleEx @663 ??1MDatabaseReadonly@@UAE@XZ @664 NONAME ?AddContact@MDatabaseReadonly@@UAGIXZ @665 NONAME -?AddEvent@MDatabaseReadonly@@UAGIIPAUDBEVENTINFO@@@Z @666 NONAME +?AddEvent@MDatabaseReadonly@@UAGIIPBUDBEVENTINFO@@@Z @666 NONAME ?DeleteContact@MDatabaseReadonly@@UAGJI@Z @667 NONAME ?DeleteContactSetting@MDatabaseReadonly@@UAGHIPBD0@Z @668 NONAME ?DeleteEvent@MDatabaseReadonly@@UAGHI@Z @669 NONAME @@ -597,7 +597,7 @@ Miranda_WaitOnHandleEx @663 ??_7MDatabaseReadonly@@6B@ @685 NONAME ?GetEventById@MDatabaseReadonly@@UAGIPBD0@Z @686 NONAME ?SetEventId@MDatabaseReadonly@@UAGHPBDI0@Z @687 NONAME -?EditEvent@MDatabaseReadonly@@UAGHIIPAUDBEVENTINFO@@@Z @688 NONAME +?EditEvent@MDatabaseReadonly@@UAGHIIPBUDBEVENTINFO@@@Z @688 NONAME g_hevContactAdded @689 NONAME g_hevContactDeleted @690 NONAME g_hevEventAdded @691 NONAME diff --git a/src/mir_app/src/mir_app64.def b/src/mir_app/src/mir_app64.def index b31b5675f9..430ffd6917 100644 --- a/src/mir_app/src/mir_app64.def +++ b/src/mir_app/src/mir_app64.def @@ -575,7 +575,7 @@ Menu_SetVisible @662 Miranda_WaitOnHandleEx @663 ??1MDatabaseReadonly@@UEAA@XZ @664 NONAME ?AddContact@MDatabaseReadonly@@UEAAIXZ @665 NONAME -?AddEvent@MDatabaseReadonly@@UEAAIIPEAUDBEVENTINFO@@@Z @666 NONAME +?AddEvent@MDatabaseReadonly@@UEAAIIPEBUDBEVENTINFO@@@Z @666 NONAME ?DeleteContact@MDatabaseReadonly@@UEAAJI@Z @667 NONAME ?DeleteContactSetting@MDatabaseReadonly@@UEAAHIPEBD0@Z @668 NONAME ?DeleteEvent@MDatabaseReadonly@@UEAAHI@Z @669 NONAME @@ -597,7 +597,7 @@ Miranda_WaitOnHandleEx @663 ??_7MDatabaseReadonly@@6B@ @685 NONAME ?GetEventById@MDatabaseReadonly@@UEAAIPEBD0@Z @686 NONAME ?SetEventId@MDatabaseReadonly@@UEAAHPEBDI0@Z @687 NONAME -?EditEvent@MDatabaseReadonly@@UEAAHIIPEAUDBEVENTINFO@@@Z @688 NONAME +?EditEvent@MDatabaseReadonly@@UEAAHIIPEBUDBEVENTINFO@@@Z @688 NONAME g_hevContactAdded @689 NONAME g_hevContactDeleted @690 NONAME g_hevEventAdded @691 NONAME diff --git a/src/mir_core/src/db.cpp b/src/mir_core/src/db.cpp index 9395366c29..b6b2eba075 100644 --- a/src/mir_core/src/db.cpp +++ b/src/mir_core/src/db.cpp @@ -361,7 +361,7 @@ MIR_CORE_DLL(INT_PTR) db_set_blob(MCONTACT hContact, const char *szModule, const ///////////////////////////////////////////////////////////////////////////////////////// // events -MIR_CORE_DLL(MEVENT) db_event_add(MCONTACT hContact, DBEVENTINFO *dbei) +MIR_CORE_DLL(MEVENT) db_event_add(MCONTACT hContact, const DBEVENTINFO *dbei) { return (currDb == nullptr) ? 0 : currDb->AddEvent(hContact, dbei); } @@ -376,7 +376,7 @@ MIR_CORE_DLL(int) db_event_delete(MEVENT hDbEvent) return (currDb == nullptr) ? 0 : currDb->DeleteEvent(hDbEvent); } -MIR_CORE_DLL(int) db_event_edit(MCONTACT hContact, MEVENT hDbEvent, DBEVENTINFO *dbei) +MIR_CORE_DLL(int) db_event_edit(MCONTACT hContact, MEVENT hDbEvent, const DBEVENTINFO *dbei) { return (currDb == nullptr) ? 0 : currDb->EditEvent(hContact, hDbEvent, dbei); } -- cgit v1.2.3