diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2011-03-17 23:58:19 +0200 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2011-03-17 23:58:19 +0200 |
commit | f4a5bae0c010e3c20d6420c9de2bb74182b26b6e (patch) | |
tree | ac120eaa84821ac21fd51235829c1db82570d230 /api/ec_pluginapi.h | |
parent | b170dc2b10df0e66acc5bc0bb89ba2c68a755f12 (diff) |
events are working )
Diffstat (limited to 'api/ec_pluginapi.h')
-rw-r--r-- | api/ec_pluginapi.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/api/ec_pluginapi.h b/api/ec_pluginapi.h index e58b55a..67b7c7d 100644 --- a/api/ec_pluginapi.h +++ b/api/ec_pluginapi.h @@ -34,16 +34,16 @@ typedef void* (*EVENT_HANDLER)(void*); typedef struct { - void (*CreateServiceFunction)(const char *,SERVICE); - void* (*CallService)(const char *,void*); - bool (*ServiceExists)(const char *); - bool (*RegisterEventHandler)(int, EVENT_HANDLER); - int (*RegisterEventType)(int, int); //event type, special id + void (*CreateServiceFunction)(const char *,SERVICE); //register new service "service name" in core (will be avaible for all modules) + void* (*CallService)(const char *,void*); //execute "service name" service with custom data (service dependent) + int (*ServiceExists)(const char *); //check if "service name" service exists + int (*RegisterEventHandler)(int, EVENT_HANDLER); //event type, handler function, return 0 on success + int (*RegisterEventType)(int, int); //event type, special id, retrun 0 on success + void* (*ExecuteEvent)(int, int, void*); //event type, special id, custom data } PLUGINLINK; typedef struct { -// int size; wchar_t *name, *description, *author, *authoremail; unsigned long version; int pluginid; //special id will be set by core, neede to call some core services |