From a8527496d9c8eb81710e718be7be8a9ae62a48b4 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Thu, 5 Aug 2010 00:46:19 +0300 Subject: new file: api/core_services.h modified: api/pluginapi.h modified: core/main.cpp modified: core/plugin.h new file: core/sqlite3.dll new file: lib/libsqlite3.a new file: modules/dbsqlite/Makefile new file: modules/dbsqlite/main.cpp new file: modules/dbsqlite/sqlite3.h modified: modules/example/main.cpp --- core/plugin.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'core/plugin.h') 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 -- cgit v1.2.3