blob: c8b0306ae17d95b0782fd153fc7f841716da6495 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#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;
exported_functions_s()
{
Load =NULL;
OnModulesLoaded = NULL;
Unload = NULL;
SetPluginInfo = NULL;
}
};
ACE_DLL *get_plugin();
// void set_plugin();
const PLUGININFO *get_plugininfo();
const exported_functions_s *get_exported_functions();
plugin(ACE_DLL *lib, PLUGININFO *info, exported_functions_s *funcs);
~plugin();
private:
ACE_DLL *plug;
exported_functions_s *exported_funcs;
PLUGININFO *plugininfo;
};
#endif // MODULE_H_INCLUDED
|