From 4c917f2e2a43ea50cd287dd322dda9d08b213b7d Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Thu, 17 Mar 2011 21:08:25 +0200 Subject: modified: api/ec_pluginapi.h modified: api/ec_services.h modified: core/events.cpp modified: core/events.h modified: core/globals.h modified: core/main.cpp modified: core/modules.cpp modified: core/modules.h modified: plugins/example/main.cpp --- api/ec_pluginapi.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'api/ec_pluginapi.h') diff --git a/api/ec_pluginapi.h b/api/ec_pluginapi.h index 94f7eaf..7f13634 100644 --- a/api/ec_pluginapi.h +++ b/api/ec_pluginapi.h @@ -19,9 +19,8 @@ #define PLUGINAPI_H_INCLUDED /* - * this is genereic plugin api header, only baisc c/c++ here - * we need to support also non wxwidgets plugins - */ + * this is genereic plugin api header, only c language here + */ typedef void* (*SERVICE)(void*); @@ -31,6 +30,7 @@ typedef void* (*EVENT_HANDLER)(void*); * CreateServiceFunction should be called with service name like: PluginName/ServiceName * EC/* reserved for core services */ + typedef struct { @@ -38,14 +38,15 @@ typedef struct void* (*CallService)(const char *,void*); bool (*ServiceExists)(const char *); bool (*RegisterEventHandler)(int, EVENT_HANDLER); - void* (*RegisterEventType)(int); + int (*RegisterEventType)(int); } PLUGINLINK; typedef struct { - int size; +// int size; wchar_t *name, *description, *author, *authoremail; unsigned long version; + int pluginid; //will be set by core, neede to call some core services }PLUGININFO; -- cgit v1.2.3