diff options
author | Alexey Kulakov <panda75@bk.ru> | 2012-07-28 18:35:29 +0000 |
---|---|---|
committer | Alexey Kulakov <panda75@bk.ru> | 2012-07-28 18:35:29 +0000 |
commit | 3ccd712341ed9e76252bd595c5a797d6c8ea8992 (patch) | |
tree | 14ce3d3ba5cbcbebca29c5ba618086c9fd768028 /include/delphi/m_api.pas | |
parent | be3185a374d39a8ee0f12a4e985ecca279633fff (diff) |
Delphi API updates
git-svn-id: http://svn.miranda-ng.org/main/trunk@1229 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/delphi/m_api.pas')
-rw-r--r-- | include/delphi/m_api.pas | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/include/delphi/m_api.pas b/include/delphi/m_api.pas index 133d3cf8b1..92c39c164d 100644 --- a/include/delphi/m_api.pas +++ b/include/delphi/m_api.pas @@ -156,18 +156,21 @@ const }
ME_SYSTEM_MODULEUNLOAD:pAnsiChar = 'Miranda/System/UnloadModule';
- { Database plugin stuff }
-
- // grokHeader() error codes
+{
+ Each service mode plugin must implement MS_SERVICEMODE_LAUNCH
+ This service might return one of the following values:
+ SERVICE_CONTINUE - load Miranda normally, like there's no service plugins at all
+ SERVICE_ONLYDB - load database and then execute service plugin only
+ SERVICE_MONOPOLY - execute only service plugin, even without database
+ SERVICE_FAILED - terminate Miranda execution
+}
const
- EGROKPRF_NOERROR = 0;
- EGROKPRF_CANTREAD = 1; // can't open the profile for reading
- EGROKPRF_UNKHEADER = 2; // header not supported, not a supported profile
- EGROKPRF_VERNEWER = 3; // header correct, version in profile newer than reader/writer
- EGROKPRF_DAMAGED = 4; // header/version fine, other internal data missing, damaged.
-// makeDatabase() error codes
- EMKPRF_CREATEFAILED = 1; // for some reason CreateFile() didnt like something
+ SERVICE_CONTINUE = 0;
+ SERVICE_ONLYDB = 1;
+ SERVICE_MONOPOLY = 2;
+ SERVICE_FAILED = (-1);
+ MS_SERVICEMODE_LAUNCH:PansiChar = 'ServiceMode/Launch';
{-- end newpluginapi --}
@@ -242,8 +245,6 @@ var {$include m_timezones.inc}
{$include m_crypto.inc}
- {$include m_newawaysys.inc}
-
implementation
const
|