diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-01 22:14:12 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-01 22:14:12 +0300 |
commit | 46a2415de1bd97c73527922a748af5455a1c6a0e (patch) | |
tree | dacdea8fed2d7f60ea4d229a17d72202b26cc365 /core/plugin.h | |
parent | 9ea3f0f6afce744e75208dc083b8459b4c33ecf0 (diff) |
first working
Diffstat (limited to 'core/plugin.h')
-rw-r--r-- | core/plugin.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/core/plugin.h b/core/plugin.h index fd25d2a..95a14cc 100644 --- a/core/plugin.h +++ b/core/plugin.h @@ -1,16 +1,28 @@ #ifndef PLUGIN_H #define PLUGIN_H + +typedef PLUGININFO * (__cdecl * SetPluginInfo) (); +typedef int (__cdecl * Load) (); + + class plugin { public: + struct exported_funcs_s + { + SetPluginInfo info; + Load load; + }; const HMODULE getHmodule(); + const exported_funcs_s getFuncs(); int setHandle(const HMODULE &hMod); int setName(const char *name); const char *getName(); - plugin(const HMODULE &hModule, const char *name); + plugin(const HMODULE hModule, const exported_funcs_s fnct, const char *name); ~plugin(); private: HMODULE hModule; char *szPluginName; + exported_funcs_s funcs; }; #endif |