From 2c6fdda841bfff2425a29c17a0a52a9aa189db42 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 26 Jul 2012 20:58:32 +0000 Subject: service plugins' load order git-svn-id: http://svn.miranda-ng.org/main/trunk@1205 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/newpluginapi.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'include/newpluginapi.h') diff --git a/include/newpluginapi.h b/include/newpluginapi.h index 2437a0b1d2..5d2ed29b00 100644 --- a/include/newpluginapi.h +++ b/include/newpluginapi.h @@ -92,7 +92,19 @@ typedef struct _MUUID { #define MIID_SERVICEMODE {0x8a92c026, 0x953a, 0x4f5f, { 0x99, 0x21, 0xf2, 0xc2, 0xdc, 0x19, 0x5e, 0xc5}} -/* Each service mode plugin must implement MS_SERVICEMODE_LAUNCH */ +/* 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 +*/ + +#define SERVICE_CONTINUE 0 +#define SERVICE_ONLYDB 1 +#define SERVICE_MONOPOLY 2 +#define SERVICE_FAILED (-1) + #define MS_SERVICEMODE_LAUNCH "ServiceMode/Launch" typedef struct PLUGININFOEX_tag -- cgit v1.2.3