diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-10-15 03:32:24 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-10-15 03:32:24 +0300 |
commit | e6d086fd2db736892290b0dfd8b38e1f12c093be (patch) | |
tree | 7419d09c763cf9694dffb3950ff8e5c70a8236be /core/modules.h | |
parent | 0d4166dadd7d9404d42e04d57b71a595d8533ace (diff) |
new file: api/pluginapi.h
modified: core/core.cbp
modified: core/main.cpp
new file: core/modules.cpp
new file: core/modules.h
Diffstat (limited to 'core/modules.h')
-rw-r--r-- | core/modules.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/core/modules.h b/core/modules.h new file mode 100644 index 0000000..d4a7929 --- /dev/null +++ b/core/modules.h @@ -0,0 +1,30 @@ +#ifndef MODULE_H_INCLUDED
+#define MODULE_H_INCLUDED
+ +typedef PLUGININFO* (*set_plugin_info)(); +typedef int (*load)(PLUGINLINK *link); +typedef int (*on_modules_loaded)(); +typedef int (*unload)(); + +class plugin +{ +public: + struct exported_functions_s + { + load Load; + on_modules_loaded OnModulesLoaded; + unload Unload; + set_plugin_info SetPluginInfo; + }; + wxDynamicLibrary *get_plugin(); + void set_plugin(); + const exported_functions_s *get_exported_functions(); + plugin(wxDynamicLibrary *lib, PLUGININFO *info, exported_functions_s *funcs); + ~plugin(); +private: + wxDynamicLibrary *plug; + exported_functions_s *exported_funcs; + PLUGININFO *plugininfo; +};
+
+#endif // MODULE_H_INCLUDED
|