summaryrefslogtreecommitdiff
path: root/include
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 /include
parentc7c0e011ddcfed4f9c3b49637bfeb8fa0d3d5a9d (diff)
forgotten database function
git-svn-id: http://svn.miranda-ng.org/main/trunk@17303 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include')
-rw-r--r--include/m_db_int.h24
1 files changed, 3 insertions, 21 deletions
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