summaryrefslogtreecommitdiff
path: root/src/modules/database
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/database')
-rw-r--r--src/modules/database/dbintf.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/database/dbintf.cpp b/src/modules/database/dbintf.cpp
index 2f7cf4ea72..4c5e19607c 100644
--- a/src/modules/database/dbintf.cpp
+++ b/src/modules/database/dbintf.cpp
@@ -186,6 +186,11 @@ static INT_PTR srvFindPlugin(WPARAM wParam,LPARAM lParam)
return NULL;
}
+static INT_PTR srvGetCurrentDb(WPARAM wParam,LPARAM lParam)
+{
+ return (INT_PTR)currDb;
+}
+
///////////////////////////////////////////////////////////////////////////////
int LoadDbintfModule()
@@ -226,5 +231,6 @@ int LoadDbintfModule()
CreateServiceFunction(MS_DB_REGISTER_PLUGIN, srvRegisterPlugin);
CreateServiceFunction(MS_DB_FIND_PLUGIN, srvFindPlugin);
+ CreateServiceFunction(MS_DB_GET_CURRENT, srvGetCurrentDb);
return 0;
}