summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/delphi/m_db_int.inc6
-rw-r--r--include/m_db_int.h14
2 files changed, 20 insertions, 0 deletions
diff --git a/include/delphi/m_db_int.inc b/include/delphi/m_db_int.inc
index 211cb7efba..d068fa1a3d 100644
--- a/include/delphi/m_db_int.inc
+++ b/include/delphi/m_db_int.inc
@@ -210,6 +210,12 @@ type
end;
///////////////////////////////////////////////////////////////////////////////
+// cache access functions
+
+function db_get_contact(hContact:TMCONTACT):PDBCachedContact; stdcall;
+ external CoreDLL name 'db_get_contact';
+
+///////////////////////////////////////////////////////////////////////////////
// Database list's services
const
diff --git a/include/m_db_int.h b/include/m_db_int.h
index 59a555e720..df07a68da8 100644
--- a/include/m_db_int.h
+++ b/include/m_db_int.h
@@ -212,6 +212,20 @@ struct DATABASELINK
};
///////////////////////////////////////////////////////////////////////////////
+// cache access function
+
+#if defined(__cplusplus)
+extern "C"
+{
+#endif
+
+MIR_CORE_DLL(DBCachedContact*) db_get_contact(MCONTACT);
+
+#if defined(__cplusplus)
+}
+#endif
+
+///////////////////////////////////////////////////////////////////////////////
// Database list's services
// MS_DB_REGISTER_PLUGIN : registers a database plugin