summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-09-16 17:34:21 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-09-16 17:34:21 +0000
commitcac58b5ab572889667f6e936a14f53ac6d87273a (patch)
tree4007fc8e9f76fb9f0b8b3013c91943f458ded092 /src/mir_core
parentc7c0e011ddcfed4f9c3b49637bfeb8fa0d3d5a9d (diff)
forgotten database function
git-svn-id: http://svn.miranda-ng.org/main/trunk@17303 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/src/db.cpp5
-rw-r--r--src/mir_core/src/mir_core.def1
-rw-r--r--src/mir_core/src/mir_core64.def1
3 files changed, 7 insertions, 0 deletions
diff --git a/src/mir_core/src/db.cpp b/src/mir_core/src/db.cpp
index 051ce6a32e..0775226498 100644
--- a/src/mir_core/src/db.cpp
+++ b/src/mir_core/src/db.cpp
@@ -40,6 +40,11 @@ MIR_CORE_DLL(int) db_get_contact_count(void)
return (currDb) ? currDb->GetContactCount() : 0;
}
+MIR_CORE_DLL(MIDatabase*) db_get_current()
+{
+ return currDb;
+}
+
static int sttEnumVars(const char *szVarName, LPARAM lParam)
{
LIST<char>* vars = (LIST<char>*)lParam;
diff --git a/src/mir_core/src/mir_core.def b/src/mir_core/src/mir_core.def
index b6e57d3b9d..a9bdba9103 100644
--- a/src/mir_core/src/mir_core.def
+++ b/src/mir_core/src/mir_core.def
@@ -1009,3 +1009,4 @@ db_delete_module @1161
??_7CCtrlSpin@@6B@ @1166 NONAME
?SetMaxLength@CCtrlEdit@@QAEXI@Z @1167 NONAME
?SetRange@CCtrlSpin@@QAEXFF@Z @1168 NONAME
+db_get_current @1169
diff --git a/src/mir_core/src/mir_core64.def b/src/mir_core/src/mir_core64.def
index 131140dff2..c7279247af 100644
--- a/src/mir_core/src/mir_core64.def
+++ b/src/mir_core/src/mir_core64.def
@@ -1009,3 +1009,4 @@ db_delete_module @1161
??_7CCtrlSpin@@6B@ @1166 NONAME
?SetMaxLength@CCtrlEdit@@QEAAXI@Z @1167 NONAME
?SetRange@CCtrlSpin@@QEAAXFF@Z @1168 NONAME
+db_get_current @1169