From cac58b5ab572889667f6e936a14f53ac6d87273a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 16 Sep 2016 17:34:21 +0000 Subject: forgotten database function git-svn-id: http://svn.miranda-ng.org/main/trunk@17303 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/m_db_int.h | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) (limited to 'include') diff --git a/include/m_db_int.h b/include/m_db_int.h index 81ce096276..806dc3a06f 100644 --- a/include/m_db_int.h +++ b/include/m_db_int.h @@ -222,20 +222,13 @@ struct DATABASELINK /////////////////////////////////////////////////////////////////////////////// // cache access function -#if defined(__cplusplus) -extern "C" -{ -#endif - -MIR_CORE_DLL(DBCachedContact*) db_get_contact(MCONTACT); - -#if defined(__cplusplus) -} -#endif +EXTERN_C MIR_CORE_DLL(DBCachedContact*) db_get_contact(MCONTACT); /////////////////////////////////////////////////////////////////////////////// // Database list's services +EXTERN_C MIR_CORE_DLL(MIDatabase*) db_get_current(void); + // MS_DB_REGISTER_PLUGIN : registers a database plugin // wParam : 0 (unused) // lParam : DATABASELINK* = database link description @@ -257,17 +250,6 @@ __forceinline DATABASELINK* FindDatabasePlugin(const wchar_t* ptszFileName) { return (DATABASELINK*)CallService(MS_DB_FIND_PLUGIN, 0, (LPARAM)ptszFileName); } -// MS_DB_GET_CURRENT : returns the database pointer for the current profile -// wParam : 0 (unused) -// lParam : 0 (unused) -// returns MIDatabase* of the current profile or NULL on error - -#define MS_DB_GET_CURRENT "DB/GetCurrentDb" - -__forceinline MIDatabase* GetCurrentDatabase(void) -{ return (MIDatabase*)CallService(MS_DB_GET_CURRENT, 0, 0); -} - // MS_DB_INIT_INSTANCE : initializes a database instance // wParam : 0 (unused) // lParam : MIDatabase* = pointer to a database instance -- cgit v1.2.3