diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-05 03:06:17 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-05 03:06:17 +0300 |
commit | 42c3b355be96c5a21ded27dbc25ee0d6a4f7668f (patch) | |
tree | 28fdf65c784af91a3efdfdb8476ee7a4776b3f07 /api | |
parent | 63edbec1418f493ff86a3e0615a50b0fb83ab6a5 (diff) |
modified: ../../api/db.h
modified: ../../api/pluginapi.h
modified: main.cpp
Diffstat (limited to 'api')
-rw-r--r-- | api/db.h | 8 | ||||
-rw-r--r-- | api/pluginapi.h | 8 |
2 files changed, 10 insertions, 6 deletions
@@ -2,10 +2,12 @@ #define DB_H #define D_INT 0x0001 #define D_STRING 0x0002 +#define D_BLOB 0x0003 struct DATA { - WORD wType; - void* pData; - char* szModule; + WORD wType; //data type + void* pData; //pointer to some data (set or get buffer) + char* szModule; //database nodue (used when reading info) + char* szSetting; //setting name }; #endif diff --git a/api/pluginapi.h b/api/pluginapi.h index 3cb5b63..2bcc480 100644 --- a/api/pluginapi.h +++ b/api/pluginapi.h @@ -4,11 +4,13 @@ #define PLUGIN_MAKE_VERSION(a,b,c,d) (((((DWORD)(a))&0xFF)<<24)|((((DWORD)(b))&0xFF)<<16)|((((DWORD)(c))&0xFF)<<8)|(((DWORD)(d))&0xFF)) #define F_GLOBAL_ACCESS 0x0010 -#define F_DB_PLUGIN 0x0001 +#define F_DB_PLUGIN 0x0001 //database plugin, can be only one at one time typedef INT_PTR (*SERVICE)(WPARAM,LPARAM); -typedef struct tagPLUGINLINK { +typedef struct tagPLUGINLINK +{ +//core api HANDLE (*CreateServiceFunction)(const char *,SERVICE); INT_PTR (*CallService)(const char *,WPARAM,LPARAM); int (*ServiceExists)(const char *); @@ -16,7 +18,7 @@ typedef struct tagPLUGINLINK { typedef struct -{ +{ //plugin description int cbSize; char *shortName, *description, *author, *authorEmail; DWORD version; |