summaryrefslogtreecommitdiff
path: root/core/plugin.h
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-08-05 00:46:19 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2010-08-05 00:46:19 +0300
commita8527496d9c8eb81710e718be7be8a9ae62a48b4 (patch)
tree962767f520dd3dea8f23fbd7161114fcab1431ff /core/plugin.h
parent03951c212bc3054a6b89a9fff9a125bace52224d (diff)
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
Diffstat (limited to 'core/plugin.h')
-rw-r--r--core/plugin.h11
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