diff options
-rw-r--r-- | api/api.h | 4 | ||||
-rw-r--r-- | api/pluginapi.h | 4 | ||||
-rw-r--r-- | core/main.cpp | 1 | ||||
-rw-r--r-- | core/plugin.h | 3 | ||||
-rw-r--r-- | modules/example/main.cpp | 5 |
5 files changed, 8 insertions, 9 deletions
diff --git a/api/api.h b/api/api.h deleted file mode 100644 index 441f258..0000000 --- a/api/api.h +++ /dev/null @@ -1,4 +0,0 @@ -#ifndef API_H -#define API_H -#endif //API_H - diff --git a/api/pluginapi.h b/api/pluginapi.h index 91c8d47..432b2d2 100644 --- a/api/pluginapi.h +++ b/api/pluginapi.h @@ -3,11 +3,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 GLOBAL_ACCESS_FLAG 0x0010 + typedef struct { int cbSize; char *shortName, *description, *author, *authorEmail; DWORD version; - BYTE flags; //unused now + WORD flags; } PLUGININFO; #endif diff --git a/core/main.cpp b/core/main.cpp index 96d47a2..54b446c 100644 --- a/core/main.cpp +++ b/core/main.cpp @@ -4,7 +4,6 @@ #include <list> -#include <api.h> #include <pluginapi.h> #include "plugin.h" diff --git a/core/plugin.h b/core/plugin.h index 95a14cc..cf2b33c 100644 --- a/core/plugin.h +++ b/core/plugin.h @@ -1,6 +1,9 @@ #ifndef PLUGIN_H #define PLUGIN_H +#include <list> + + typedef PLUGININFO * (__cdecl * SetPluginInfo) (); typedef int (__cdecl * Load) (); diff --git a/modules/example/main.cpp b/modules/example/main.cpp index 76a004d..a38f44f 100644 --- a/modules/example/main.cpp +++ b/modules/example/main.cpp @@ -1,7 +1,6 @@ #include <windows.h> -#include <api.h> + #include <pluginapi.h> -#include <iostream> HINSTANCE hInst; BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved ) //default dll entry point @@ -18,7 +17,7 @@ PLUGININFO pluginInfo = 0, //author 0, //author email PLUGIN_MAKE_VERSION(0,0,0,1), //version - 0 //flags (unused) + GLOBAL_ACCESS_FLAG //flags }; extern "C" __declspec(dllexport) PLUGININFO* SetPluginInfo() |