diff options
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 |