add watchdog thread to detect lockups
[pcsx_rearmed.git] / frontend / plugin_lib.h
CommitLineData
b60f2812 1
69af03a2 2extern int keystate;
3enum {
4 DKEY_SELECT = 0,
5 DKEY_L3,
6 DKEY_R3,
7 DKEY_START,
8 DKEY_UP,
9 DKEY_RIGHT,
10 DKEY_DOWN,
11 DKEY_LEFT,
12 DKEY_L2,
13 DKEY_R2,
14 DKEY_L1,
15 DKEY_R1,
16 DKEY_TRIANGLE,
17 DKEY_CIRCLE,
18 DKEY_CROSS,
19 DKEY_SQUARE,
20};
21
b60f2812 22extern void *pl_fbdev_buf;
23
6d1a1ac2 24int pl_fbdev_open(void);
297b3d63 25void *pl_fbdev_set_mode(int w, int h, int bpp);
ffd0d743 26void *pl_fbdev_flip(void);
6d1a1ac2 27void pl_fbdev_close(void);
69af03a2 28
201c21e2 29void pl_text_out16(int x, int y, const char *texto, ...);
7c0f51de 30void pl_start_watchdog(void);
201c21e2 31
32struct rearmed_cbs {
ffd0d743 33 void (*pl_get_layer_pos)(int *x, int *y, int *w, int *h);
34 int (*pl_fbdev_open)(void);
297b3d63 35 void *(*pl_fbdev_set_mode)(int w, int h, int bpp);
ffd0d743 36 void *(*pl_fbdev_flip)(void);
37 void (*pl_fbdev_close)(void);
78d78c3b 38 int *fskip_option;
201c21e2 39};
40
41extern const struct rearmed_cbs pl_rearmed_cbs;
4f3639fa 42
bce6b056 43extern int pl_frame_interval;
44
4f3639fa 45#ifndef ARRAY_SIZE
46#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
47#endif