24b24674 |
1 | #ifdef __cplusplus |
2 | extern "C" { |
3 | #endif |
4 | |
049a6b3e |
5 | /* stuff to be implemented by platform code */ |
d572cbad |
6 | extern char cpu_clk_name[]; |
93c18cb4 |
7 | |
8 | void pemu_prep_defconfig(void); |
9 | void pemu_loop(void); |
10 | void pemu_forced_frame(int opts); |
11 | void pemu_sound_start(void); |
12 | void pemu_sound_stop(void); |
13 | void pemu_sound_wait(void); |
14 | |
049a6b3e |
15 | void menu_romload_prepare(const char *rom_name); |
16 | void menu_romload_end(void); |
24b24674 |
17 | |
fa8d1331 |
18 | void plat_early_init(void); |
d572cbad |
19 | void plat_init(void); |
20 | void plat_finish(void); |
21 | |
93c18cb4 |
22 | /* return the dir/ where configs, saves, bios, etc. are found */ |
23 | int plat_get_root_dir(char *dst, int len); |
24 | |
388947f3 |
25 | /* to be used while emulation is starting or running */ |
26 | void plat_status_msg(const char *format, ...); |
27 | |
28 | /* used before things blocking for a while (these funcs redraw on return) */ |
29 | void plat_status_msg_busy_first(const char *msg); |
30 | void plat_status_msg_busy_next(const char *msg); |
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); |
36 | |
9ecdd73a |
37 | void plat_video_toggle_renderer(int is_next, int is_menu); |
fa8d1331 |
38 | void plat_validate_config(void); |
388947f3 |
39 | void plat_update_volume(int has_changed, int is_up); |
fa8d1331 |
40 | |
049a6b3e |
41 | int plat_is_dir(const char *path); |
4ab30ad4 |
42 | int plat_wait_event(int *fds_hnds, int count, int timeout_ms); |
43 | void plat_sleep_ms(int ms); |
049a6b3e |
44 | |
4ab30ad4 |
45 | /* ms counter, to be used for time diff */ |
46 | unsigned int plat_get_ticks_ms(void); |
47 | |
48 | const char *plat_get_credits(void); |
93c18cb4 |
49 | void plat_debug_cat(char *str); |
049a6b3e |
50 | |
24b24674 |
51 | #ifdef __cplusplus |
52 | } // extern "C" |
53 | #endif |
54 | |