summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-09-16 17:47:16 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-09-16 17:47:16 +0000
commit7a7a6637021d78ad995f3e21e9743fae69bd2562 (patch)
tree2b5eae777475f1cf3636686700bf7eddd80a8f1a /include
parentcac58b5ab572889667f6e936a14f53ac6d87273a (diff)
service wrappers -> real functions
git-svn-id: http://svn.miranda-ng.org/main/trunk@17304 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include')
-rw-r--r--include/m_db_int.h44
1 files changed, 9 insertions, 35 deletions
diff --git a/include/m_db_int.h b/include/m_db_int.h
index 806dc3a06f..498dcf568d 100644
--- a/include/m_db_int.h
+++ b/include/m_db_int.h
@@ -225,51 +225,25 @@ struct DATABASELINK
EXTERN_C MIR_CORE_DLL(DBCachedContact*) db_get_contact(MCONTACT);
///////////////////////////////////////////////////////////////////////////////
-// Database list's services
+// Database list's functions
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
+// registers a database plugin
-#define MS_DB_REGISTER_PLUGIN "DB/RegisterPlugin"
+EXTERN_C MIR_APP_DLL(void) RegisterDatabasePlugin(DATABASELINK *pDescr);
-__forceinline void RegisterDatabasePlugin(DATABASELINK* pDescr)
-{ CallService(MS_DB_REGISTER_PLUGIN, 0, (LPARAM)pDescr);
-}
-
-// MS_DB_FIND_PLUGIN : looks for a database plugin suitable to open this file
-// wParam : 0 (unused)
-// lParam : const wchar_t* = name of the database file
+// looks for a database plugin suitable to open this file
// returns DATABASELINK* of the required plugin or NULL on error
-#define MS_DB_FIND_PLUGIN "DB/FindPlugin"
-
-__forceinline DATABASELINK* FindDatabasePlugin(const wchar_t* ptszFileName)
-{ return (DATABASELINK*)CallService(MS_DB_FIND_PLUGIN, 0, (LPARAM)ptszFileName);
-}
-
-// MS_DB_INIT_INSTANCE : initializes a database instance
-// wParam : 0 (unused)
-// lParam : MIDatabase* = pointer to a database instance
-// returns 0
-
-#define MS_DB_INIT_INSTANCE "DB/InitDbInstance"
+EXTERN_C MIR_APP_DLL(DATABASELINK*) FindDatabasePlugin(const wchar_t *ptszFileName);
-__forceinline void InitDbInstance(MIDatabase* pDatabase)
-{ CallService(MS_DB_INIT_INSTANCE, 0, (LPARAM)pDatabase);
-}
+// initializes a database instance
-// MS_DB_DESTROY_INSTANCE : destroys a database instance
-// wParam : 0 (unused)
-// lParam : MIDatabase* = pointer to a database instance
-// returns 0
+EXTERN_C MIR_APP_DLL(void) InitDbInstance(MIDatabase *pDatabase);
-#define MS_DB_DESTROY_INSTANCE "DB/DestroyDbInstance"
+// destroys a database instance
-__forceinline void DestroyDbInstance(MIDatabase* pDatabase)
-{ CallService(MS_DB_DESTROY_INSTANCE, 0, (LPARAM)pDatabase);
-}
+EXTERN_C MIR_APP_DLL(void) DestroyDbInstance(MIDatabase *pDatabase);
#endif // M_DB_INT_H__