From e6d086fd2db736892290b0dfd8b38e1f12c093be Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Fri, 15 Oct 2010 03:32:24 +0300 Subject: new file: api/pluginapi.h modified: core/core.cbp modified: core/main.cpp new file: core/modules.cpp new file: core/modules.h --- api/pluginapi.h | 28 +++++++++++++++++++++++++ core/core.cbp | 13 ++++++++---- core/main.cpp | 22 +++++++++++--------- core/modules.cpp | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ core/modules.h | 30 +++++++++++++++++++++++++++ 5 files changed, 142 insertions(+), 14 deletions(-) create mode 100644 api/pluginapi.h create mode 100644 core/modules.cpp create mode 100644 core/modules.h diff --git a/api/pluginapi.h b/api/pluginapi.h new file mode 100644 index 0000000..9b89b66 --- /dev/null +++ b/api/pluginapi.h @@ -0,0 +1,28 @@ +#ifndef PLUGINAPI_H_INCLUDED +#define PLUGINAPI_H_INCLUDED + +/* +this is genereic plugin api header, only baisc c/c++ here +we need to support also non wxwidgets plugins +*/ + + +typedef void* (*SERVICE)(void*); + + +typedef struct +{ + void* (*CreateServiceFunction)(const char *,SERVICE); + void* (*CallService)(const char *,void*); + int (*ServiceExists)(const char *); +} PLUGINLINK; + +typedef struct +{ + wchar_t *name, *description, *author, *authoremail; + unsigned long version; + +}PLUGININFO; + + +#endif // PLUGINAPI_H_INCLUDED diff --git a/core/core.cbp b/core/core.cbp index f4eeb66..674714a 100644 --- a/core/core.cbp +++ b/core/core.cbp @@ -14,10 +14,10 @@