drc: fix warning in my code
[pcsx_rearmed.git] / frontend / plugin_lib.h
1
2 enum {
3         DKEY_SELECT = 0,
4         DKEY_L3,
5         DKEY_R3,
6         DKEY_START,
7         DKEY_UP,
8         DKEY_RIGHT,
9         DKEY_DOWN,
10         DKEY_LEFT,
11         DKEY_L2,
12         DKEY_R2,
13         DKEY_L1,
14         DKEY_R1,
15         DKEY_TRIANGLE,
16         DKEY_CIRCLE,
17         DKEY_CROSS,
18         DKEY_SQUARE,
19 };
20 extern int in_type, in_keystate, in_a1[2], in_a2[2];
21 void in_update_analogs(void);
22
23 extern void *pl_fbdev_buf;
24
25 int   pl_fbdev_open(void);
26 void *pl_fbdev_set_mode(int w, int h, int bpp);
27 void *pl_fbdev_flip(void);
28 void  pl_fbdev_close(void);
29
30 void  pl_text_out16(int x, int y, const char *texto, ...);
31 void  pl_start_watchdog(void);
32 void *pl_prepare_screenshot(int *w, int *h, int *bpp);
33
34 struct rearmed_cbs {
35         void  (*pl_get_layer_pos)(int *x, int *y, int *w, int *h);
36         int   (*pl_fbdev_open)(void);
37         void *(*pl_fbdev_set_mode)(int w, int h, int bpp);
38         void *(*pl_fbdev_flip)(void);
39         void  (*pl_fbdev_close)(void);
40         int  *fskip_option;
41 };
42
43 extern const struct rearmed_cbs pl_rearmed_cbs;
44
45 extern int pl_frame_interval;
46
47 #ifndef ARRAY_SIZE
48 #define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
49 #endif