diff options
Diffstat (limited to 'api')
-rw-r--r-- | api/ec_pluginapi.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/api/ec_pluginapi.h b/api/ec_pluginapi.h index 50bb776..94f7eaf 100644 --- a/api/ec_pluginapi.h +++ b/api/ec_pluginapi.h @@ -25,6 +25,7 @@ typedef void* (*SERVICE)(void*); +typedef void* (*EVENT_HANDLER)(void*); /* * CreateServiceFunction should be called with service name like: PluginName/ServiceName @@ -36,8 +37,8 @@ typedef struct void (*CreateServiceFunction)(const char *,SERVICE); void* (*CallService)(const char *,void*); bool (*ServiceExists)(const char *); - bool (*RegisterEventHandler)(void*); - bool (*RegisterEventType)(int); + bool (*RegisterEventHandler)(int, EVENT_HANDLER); + void* (*RegisterEventType)(int); } PLUGINLINK; typedef struct |