24b24674 |
1 | #ifdef __cplusplus |
2 | extern "C" { |
3 | #endif |
4 | |
049a6b3e |
5 | /* stuff to be implemented by platform code */ |
0c9ae592 |
6 | extern const char *renderer_names[]; |
7 | extern const char *renderer_names32x[]; |
93c18cb4 |
8 | |
9 | void pemu_prep_defconfig(void); |
d2f29611 |
10 | void pemu_validate_config(void); |
b5bfb864 |
11 | void pemu_loop_prep(void); |
12 | void pemu_loop_end(void); |
902972d1 |
13 | void pemu_forced_frame(int no_scale, int do_emu); // ..to g_menubg_src_ptr |
b188c2b6 |
14 | void pemu_finalize_frame(const char *fps, const char *notice_msg); |
b5bfb864 |
15 | |
93c18cb4 |
16 | void pemu_sound_start(void); |
17 | void pemu_sound_stop(void); |
18 | void pemu_sound_wait(void); |
19 | |
fa8d1331 |
20 | void plat_early_init(void); |
d572cbad |
21 | void plat_init(void); |
22 | void plat_finish(void); |
23 | |
93c18cb4 |
24 | /* return the dir/ where configs, saves, bios, etc. are found */ |
25 | int plat_get_root_dir(char *dst, int len); |
26 | |
388947f3 |
27 | /* used before things blocking for a while (these funcs redraw on return) */ |
28 | void plat_status_msg_busy_first(const char *msg); |
29 | void plat_status_msg_busy_next(const char *msg); |
b5bfb864 |
30 | void plat_status_msg_clear(void); |
388947f3 |
31 | |
24b24674 |
32 | /* menu: enter (switch bpp, etc), begin/end drawing */ |
33 | void plat_video_menu_enter(int is_rom_loaded); |
34 | void plat_video_menu_begin(void); |
35 | void plat_video_menu_end(void); |
95a2ec38 |
36 | void plat_video_menu_leave(void); |
24b24674 |
37 | |
b188c2b6 |
38 | void plat_video_flip(void); |
b5bfb864 |
39 | void plat_video_wait_vsync(void); |
662e622b |
40 | void plat_video_toggle_renderer(int change, int menu_call); |
b188c2b6 |
41 | |
388947f3 |
42 | void plat_update_volume(int has_changed, int is_up); |
fa8d1331 |
43 | |
049a6b3e |
44 | int plat_is_dir(const char *path); |
4ab30ad4 |
45 | int plat_wait_event(int *fds_hnds, int count, int timeout_ms); |
46 | void plat_sleep_ms(int ms); |
049a6b3e |
47 | |
8ced8d2b |
48 | /* timers, to be used for time diff and must refer to the same clock */ |
b5bfb864 |
49 | unsigned int plat_get_ticks_ms(void); |
50 | unsigned int plat_get_ticks_us(void); |
51 | void plat_wait_till_us(unsigned int us); |
4ab30ad4 |
52 | |
93c18cb4 |
53 | void plat_debug_cat(char *str); |
049a6b3e |
54 | |
24b24674 |
55 | #ifdef __cplusplus |
56 | } // extern "C" |
57 | #endif |
58 | |