summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-09-23 17:27:04 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-09-23 17:27:12 +0300
commit95b66d773710bfdc4784ebac07bbb86868fdea8a (patch)
treeff053043d665086c1c97ebe331c42974eca52614 /src/mir_core
parente5902c3524be5c1473563521c3e6e99acdf3ec3c (diff)
db_event_edit - new stub for editing messages
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/src/db.cpp5
-rw-r--r--src/mir_core/src/mir_core.def1
-rw-r--r--src/mir_core/src/mir_core64.def1
3 files changed, 7 insertions, 0 deletions
diff --git a/src/mir_core/src/db.cpp b/src/mir_core/src/db.cpp
index 1fae803761..87eb0ed80c 100644
--- a/src/mir_core/src/db.cpp
+++ b/src/mir_core/src/db.cpp
@@ -361,6 +361,11 @@ MIR_CORE_DLL(int) db_event_delete(MCONTACT hContact, MEVENT hDbEvent)
return (currDb == nullptr) ? 0 : currDb->DeleteEvent(hContact, hDbEvent);
}
+MIR_CORE_DLL(int) db_event_edit(MCONTACT hContact, MEVENT hDbEvent, DBEVENTINFO *dbei)
+{
+ return (currDb == nullptr) ? 0 : currDb->EditEvent(hContact, hDbEvent, dbei);
+}
+
MIR_CORE_DLL(MEVENT) db_event_first(MCONTACT hContact)
{
return (currDb == nullptr) ? 0 : currDb->FindFirstEvent(hContact);
diff --git a/src/mir_core/src/mir_core.def b/src/mir_core/src/mir_core.def
index 968b8f764f..1b50cfafc5 100644
--- a/src/mir_core/src/mir_core.def
+++ b/src/mir_core/src/mir_core.def
@@ -1067,3 +1067,4 @@ CallObjectEventHook @1259
?VerifyControls@CDlgBase@@AAE_NP8CCtrlBase@@AE_NXZ@Z @1265 NONAME
db_event_getById @1266
db_event_setId @1267
+db_event_edit @1268
diff --git a/src/mir_core/src/mir_core64.def b/src/mir_core/src/mir_core64.def
index 17079509be..f43d9b35ed 100644
--- a/src/mir_core/src/mir_core64.def
+++ b/src/mir_core/src/mir_core64.def
@@ -1067,3 +1067,4 @@ CallObjectEventHook @1259
?VerifyControls@CDlgBase@@AEAA_NP8CCtrlBase@@EAA_NXZ@Z @1265 NONAME
db_event_getById @1266
db_event_setId @1267
+db_event_edit @1268