From f4a5bae0c010e3c20d6420c9de2bb74182b26b6e Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Thu, 17 Mar 2011 23:58:19 +0200 Subject: events are working ) --- api/ec_pluginapi.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'api/ec_pluginapi.h') 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 -- cgit v1.2.3