diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-28 16:23:55 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-28 16:23:55 +0000 |
commit | f3311cd7eb5e87b3718f763a3c08cd3764c84f51 (patch) | |
tree | dfca74c5949383d9bfcfed1bbed0dd3e9d4a67bb /include/m_database.h | |
parent | c420cf1a7491cedc2d073d22d37b12a3a581bc44 (diff) |
- added MS_DB_SETDEFAULTPROFILE service for the service plugins
- added ability to call the service plugin before loading database
- changed the core module modules' loading order
git-svn-id: http://svn.miranda-ng.org/main/trunk@1225 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/m_database.h')
-rw-r--r-- | include/m_database.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/m_database.h b/include/m_database.h index 9fcce5bd8d..f10cb76bfd 100644 --- a/include/m_database.h +++ b/include/m_database.h @@ -86,7 +86,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. /************************* SERVICES *******************************/
/******************************************************************/
-/* DB/Contact/GetProfileName service
+/* DB/GetProfileName service
Gets the name of the profile currently being used by the database module. This
is the same as the filename of the database
wParam = (WPARAM)(UINT)cbName
@@ -98,7 +98,7 @@ Returns 0 on success or nonzero otherwise #define MS_DB_GETPROFILENAME "DB/GetProfileName"
#define MS_DB_GETPROFILENAMEW "DB/GetProfileNameW"
-/* DB/Contact/GetProfilePath service
+/* DB/GetProfilePath service
Get the path of the base folder where Miranda will store all individual profiles
The returned path does NOT include a trailing backslash.
Essentially this is what has been set in mirandaboot.ini as ProfileDir.
@@ -120,6 +120,15 @@ Returns 0 on success or nonzero otherwise #define MS_DB_GETPROFILENAMET MS_DB_GETPROFILENAME
#endif
+/* DB/SetDefaultProfile service
+Sets the default profile name programmatically
+Analog of Database/DefaultProfile in mirandaboot.ini
+ wParam = (WPARAM)(TCHAR*)ptszProfileName
+ lParam = 0 (unused)
+*/
+
+#define MS_DB_SETDEFAULTPROFILE "DB/SetDefaultProfile"
+
/************************* Contact ********************************/
/* DB/Contact/GetSetting service
|