summaryrefslogtreecommitdiff
path: root/api/ec_pluginapi.h
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2011-03-17 21:08:25 +0200
committerGluzskiy Alexandr <sss123next@list.ru>2011-03-17 21:08:25 +0200
commit4c917f2e2a43ea50cd287dd322dda9d08b213b7d (patch)
treec990c65226c78a2ee6595c05a3b2be36755d5b8f /api/ec_pluginapi.h
parentee695f119bbc7b3f1557ab01b7953de2ca03e00b (diff)
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
Diffstat (limited to 'api/ec_pluginapi.h')
-rw-r--r--api/ec_pluginapi.h11
1 files changed, 6 insertions, 5 deletions
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;