summaryrefslogtreecommitdiff
path: root/core/plugin.h
blob: 893b445ffee2ac0e3eb5477154c4c6cc7c3e7e7b (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
#ifndef PLUGIN_H
#define PLUGIN_H

#include <list>


typedef PLUGININFO * (__cdecl * SetPluginInfo) ();
typedef int (__cdecl * Load) (PLUGINLINK *link);

class plugin 
{
public:
	struct exported_funcs_s
	{
		SetPluginInfo info;
		Load load;
	};
	const HMODULE getHmodule();
	const exported_funcs_s getFuncs();
	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();
private:
	HMODULE hModule;
	char *szPluginName;
	exported_funcs_s funcs;
};
#endif