From a0a5ee70f1e5021df606a01a212144f4fe955daa Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 18 Jan 2021 21:57:04 +0300 Subject: fixes #2698 (Add current db format (mdbx, sqlite) to version info report) --- plugins/Dbx_mdbx/src/dbintf.h | 4 +++- plugins/Dbx_mdbx/src/init.cpp | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'plugins/Dbx_mdbx/src') diff --git a/plugins/Dbx_mdbx/src/dbintf.h b/plugins/Dbx_mdbx/src/dbintf.h index 7fa524e302..67ccd62718 100644 --- a/plugins/Dbx_mdbx/src/dbintf.h +++ b/plugins/Dbx_mdbx/src/dbintf.h @@ -285,7 +285,9 @@ public: STDMETHODIMP_(BOOL) Backup(const wchar_t*); STDMETHODIMP_(MEVENT) GetEventById(const char *szModule, const char *szId) override; - + + STDMETHODIMP_(DATABASELINK*) GetDriver() override; + STDMETHODIMP_(DB::EventCursor *) EventCursor(MCONTACT hContact, MEVENT hDbEvent) override; STDMETHODIMP_(DB::EventCursor *) EventCursorRev(MCONTACT hContact, MEVENT hDbEvent) override; diff --git a/plugins/Dbx_mdbx/src/init.cpp b/plugins/Dbx_mdbx/src/init.cpp index 94e040a74f..a20c45320f 100644 --- a/plugins/Dbx_mdbx/src/init.cpp +++ b/plugins/Dbx_mdbx/src/init.cpp @@ -97,6 +97,11 @@ static DATABASELINK dblink = loadDatabase }; +STDMETHODIMP_(DATABASELINK *) CDbxMDBX::GetDriver() +{ + return &dblink; +} + int CMPlugin::Load() { mdbx_setup_debug(MDBX_LOG_WARN, MDBX_DBG_ASSERT, &logger); -- cgit v1.2.3