diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-24 18:00:14 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-24 18:00:14 +0000 |
commit | 4f7053434c29ed1472070e33ad5026ca93bcf1b1 (patch) | |
tree | 31b71c5b239d3391fb7bff65aeb5242f048f8233 /src | |
parent | 9628bd0e796e0713377373863b962e3594204045 (diff) |
new service for the current database link retrieving
git-svn-id: http://svn.miranda-ng.org/main/trunk@1167 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/database/dbintf.cpp | 6 |
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;
}
|