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/Db3x_mmap/src/dbintf.h | 2 ++ plugins/Db3x_mmap/src/init.cpp | 5 +++++ 2 files changed, 7 insertions(+) (limited to 'plugins/Db3x_mmap/src') diff --git a/plugins/Db3x_mmap/src/dbintf.h b/plugins/Db3x_mmap/src/dbintf.h index 488e1c5ac0..8e09a9ba1c 100644 --- a/plugins/Db3x_mmap/src/dbintf.h +++ b/plugins/Db3x_mmap/src/dbintf.h @@ -242,6 +242,8 @@ public: STDMETHODIMP_(MEVENT) GetEventById(LPCSTR szModule, LPCSTR szId) override; + STDMETHODIMP_(DATABASELINK*) GetDriver() override; + protected: DWORD GetSettingsGroupOfsByModuleNameOfs(DBContact *dbc, DWORD ofsModuleName); void InvalidateSettingsGroupOfsCacheEntry(DWORD) {} diff --git a/plugins/Db3x_mmap/src/init.cpp b/plugins/Db3x_mmap/src/init.cpp index f43a620d62..5523236de0 100644 --- a/plugins/Db3x_mmap/src/init.cpp +++ b/plugins/Db3x_mmap/src/init.cpp @@ -134,6 +134,11 @@ static DATABASELINK dblink = LoadDatabase }; +STDMETHODIMP_(DATABASELINK *) CDb3Mmap::GetDriver() +{ + return &dblink; +} + ///////////////////////////////////////////////////////////////////////////////////////// int CMPlugin::Load() -- cgit v1.2.3