summaryrefslogtreecommitdiff
path: root/include/newpluginapi.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-26 20:58:32 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-26 20:58:32 +0000
commit2c6fdda841bfff2425a29c17a0a52a9aa189db42 (patch)
tree603155af17803cb0a826aaeeadfd9a2654c9008b /include/newpluginapi.h
parentecdc78ceeab06693142db6b3c1b44169cc035e7a (diff)
service plugins' load order
git-svn-id: http://svn.miranda-ng.org/main/trunk@1205 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/newpluginapi.h')
-rw-r--r--include/newpluginapi.h14
1 files changed, 13 insertions, 1 deletions
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