diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-24 18:00:14 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-24 18:00:14 +0000 |
commit | 4f7053434c29ed1472070e33ad5026ca93bcf1b1 (patch) | |
tree | 31b71c5b239d3391fb7bff65aeb5242f048f8233 /include/m_db_int.h | |
parent | 9628bd0e796e0713377373863b962e3594204045 (diff) |
new service for the current database link retrieving
git-svn-id: http://svn.miranda-ng.org/main/trunk@1167 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/m_db_int.h')
-rw-r--r-- | include/m_db_int.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/m_db_int.h b/include/m_db_int.h index 2fd70ceec5..7a4e3759e4 100644 --- a/include/m_db_int.h +++ b/include/m_db_int.h @@ -134,4 +134,15 @@ __inline static DATABASELINK* FindDatabasePlugin(const TCHAR* 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"
+
+__inline static MIDatabase* GetCurrentDatabase(void)
+{ return (MIDatabase*)CallService(MS_DB_GET_CURRENT, 0, 0);
+}
+
#endif // M_DB_INT_H__
|