summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/db.cpp5
-rw-r--r--src/mir_core/mir_core.def1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/mir_core/db.cpp b/src/mir_core/db.cpp
index b851a6a96c..140af537c0 100644
--- a/src/mir_core/db.cpp
+++ b/src/mir_core/db.cpp
@@ -364,6 +364,11 @@ MIR_CORE_DLL(INT_PTR) db_unset(MCONTACT hContact, const char *szModule, const ch
return currDb->DeleteContactSetting(hContact, szModule, szSetting);
}
+MIR_CORE_DLL(DBCachedContact*) db_get_contact(MCONTACT hContact)
+{
+ return (currDb == NULL) ? NULL : currDb->m_cache->GetCachedContact(hContact);
+}
+
MIR_CORE_DLL(MCONTACT) db_find_first(const char *szProto)
{
return (currDb == NULL) ? NULL : currDb->FindFirstContact(szProto);
diff --git a/src/mir_core/mir_core.def b/src/mir_core/mir_core.def
index 6f8d466469..0d8eaf3e21 100644
--- a/src/mir_core/mir_core.def
+++ b/src/mir_core/mir_core.def
@@ -251,3 +251,4 @@ db_get_static_utf @248
db_mc_isMeta @249
db_mc_isSub @250
db_mc_getMeta @251
+db_get_contact @252