frontend: update libpicofe, fix missed callbacks
[pcsx_rearmed.git] / frontend / plugin.h
1 #ifndef __PLUGIN_H__
2 #define __PLUGIN_H__
3
4 #ifndef ARRAY_SIZE
5 #define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
6 #endif
7
8 #define PLUGIN_DL_BASE 0xfbad0000
9
10 enum builtint_plugins_e {
11         PLUGIN_GPU,
12         PLUGIN_SPU,
13 };
14
15 void *plugin_link(enum builtint_plugins_e id, const char *sym);
16 void plugin_call_rearmed_cbs(void);
17
18 struct PadDataS;
19 long PAD1_readPort(struct PadDataS *);
20 long PAD2_readPort(struct PadDataS *);
21
22 #endif /* __PLUGIN_H__ */