From f5add60f90e833abe8817bbe3beb64fe5a2b76a8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 9 Mar 2014 18:39:03 +0000 Subject: db_get_contact - fast access to the cached contacts git-svn-id: http://svn.miranda-ng.org/main/trunk@8518 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/delphi/m_db_int.inc | 6 ++++++ include/m_db_int.h | 14 ++++++++++++++ 2 files changed, 20 insertions(+) (limited to 'include') 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 @@ -209,6 +209,12 @@ type CheckDB : function (const profile:PWideChar; error:pint):PMIDatabaseChecker;cdecl; end; +/////////////////////////////////////////////////////////////////////////////// +// cache access functions + +function db_get_contact(hContact:TMCONTACT):PDBCachedContact; stdcall; + external CoreDLL name 'db_get_contact'; + /////////////////////////////////////////////////////////////////////////////// // Database list's services 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 @@ -211,6 +211,20 @@ struct DATABASELINK MIDatabaseChecker* (*CheckDB)(const TCHAR *profile, int *error); }; +/////////////////////////////////////////////////////////////////////////////// +// 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 -- cgit v1.2.3