diff options
Diffstat (limited to 'core/plugin.h')
-rw-r--r-- | core/plugin.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/core/plugin.h b/core/plugin.h index f79c2de..c84ea0b 100644 --- a/core/plugin.h +++ b/core/plugin.h @@ -7,6 +7,7 @@ typedef PLUGININFO * (__cdecl * SetPluginInfo) (); typedef int (__cdecl * Load) (PLUGINLINK *link); typedef int (__cdecl * OnModulesLoaded) (); +typedef int (__cdecl * Unload) (); class plugin { @@ -16,19 +17,17 @@ public: SetPluginInfo info; Load load; OnModulesLoaded loaded; + Unload unload; }; const HMODULE getHmodule(); const exported_funcs_s getFuncs(); - const PLUGININFO getPluginInfo(); + PLUGININFO *getPluginInfo(); int setHandle(const HMODULE &hMod); - int setName(const char *name); - const char *getName(); - plugin(const HMODULE hModule, const exported_funcs_s fnct, const char *name); + plugin(const HMODULE hModule, const exported_funcs_s fnct, PLUGININFO *info); ~plugin(); private: HMODULE hModule; - char *szPluginName; exported_funcs_s funcs; - PLUGININFO pluginInfo; + PLUGININFO *pluginInfo; }; #endif |