summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdbx/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-01-18 21:57:04 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-01-18 21:57:04 +0300
commita0a5ee70f1e5021df606a01a212144f4fe955daa (patch)
tree5a2e33c2f6b1481318f11a9c38e0732cb53be802 /plugins/Dbx_mdbx/src
parent007d5cd3398c7e82a5bbfe29131323c7c2ea379b (diff)
fixes #2698 (Add current db format (mdbx, sqlite) to version info report)
Diffstat (limited to 'plugins/Dbx_mdbx/src')
-rw-r--r--plugins/Dbx_mdbx/src/dbintf.h4
-rw-r--r--plugins/Dbx_mdbx/src/init.cpp5
2 files changed, 8 insertions, 1 deletions
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);