summaryrefslogtreecommitdiff
path: root/include/m_db_int.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-03-10 22:01:06 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-03-10 22:01:06 +0300
commitd04454be20272e2d9db3a6546a4ad7d373ca4571 (patch)
tree8e7165c1ec0233bd30f13b83a3c75e49f51ef115 /include/m_db_int.h
parent622e8f22fad1f323c6b7797a3e9f9ac34d50ae3e (diff)
GetDatabasePlugin(pszDriverName) - new function to retrieve a database link by its short name
Diffstat (limited to 'include/m_db_int.h')
-rw-r--r--include/m_db_int.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/m_db_int.h b/include/m_db_int.h
index 19d5377039..0a6aa6ddb5 100644
--- a/include/m_db_int.h
+++ b/include/m_db_int.h
@@ -267,12 +267,14 @@ EXTERN_C MIR_CORE_DLL(DBCachedContact*) db_get_contact(MCONTACT);
EXTERN_C MIR_CORE_DLL(MIDatabase*) db_get_current(void);
// registers a database plugin
-
EXTERN_C MIR_APP_DLL(void) RegisterDatabasePlugin(DATABASELINK *pDescr);
-// looks for a database plugin suitable to open this file
-// returns DATABASELINK* of the required plugin or NULL on error
+// looks for a database plugin by its short name
+// returns DATABASELINK* of the required plugin or nullptr on error
+EXTERN_C MIR_APP_DLL(DATABASELINK*) GetDatabasePlugin(const char *pszDriverName);
+// looks for a database plugin suitable to open this file
+// returns DATABASELINK* of the required plugin or nullptr on error
EXTERN_C MIR_APP_DLL(DATABASELINK*) FindDatabasePlugin(const wchar_t *ptszFileName);
#endif // M_DB_INT_H__