diff options
author | George Hazan <ghazan@miranda.im> | 2020-04-25 17:08:25 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-04-25 17:08:32 +0300 |
commit | 6ea21b88c16c553aa97e2cd53266ffd4a689d581 (patch) | |
tree | fd32557b4347043c0ce04aaaad2333e90faee3ba /src | |
parent | c9f5b74041f85d59dd061c7e1cfbe35d23ead9a3 (diff) |
db_event_add / db_event_edit to receive const pointer to DBEVENTINFO
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/MDatabaseReadonly.cpp | 4 | ||||
-rw-r--r-- | src/mir_app/src/mir_app.def | 4 | ||||
-rw-r--r-- | src/mir_app/src/mir_app64.def | 4 | ||||
-rw-r--r-- | src/mir_core/src/db.cpp | 4 |
4 files changed, 8 insertions, 8 deletions
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);
}
|