1fb0dd88 |
1 | #ifdef __cplusplus |
2 | extern "C" { |
3 | #endif |
4 | |
713c9224 |
5 | /* stuff to be implemented by platform code */ |
42171343 |
6 | extern char cpu_clk_name[]; |
f2cf8472 |
7 | |
8 | void pemu_prep_defconfig(void); |
b24e0f6c |
9 | void pemu_loop_prep(void); |
10 | void pemu_loop_end(void); |
f2cf8472 |
11 | void pemu_forced_frame(int opts); |
b24e0f6c |
12 | void pemu_update_display(const char *fps, const char *notice_msg); |
13 | |
f2cf8472 |
14 | void pemu_sound_start(void); |
15 | void pemu_sound_stop(void); |
16 | void pemu_sound_wait(void); |
17 | |
713c9224 |
18 | void menu_romload_prepare(const char *rom_name); |
19 | void menu_romload_end(void); |
1fb0dd88 |
20 | |
ee2a3bdf |
21 | void plat_early_init(void); |
42171343 |
22 | void plat_init(void); |
23 | void plat_finish(void); |
24 | |
f2cf8472 |
25 | /* return the dir/ where configs, saves, bios, etc. are found */ |
26 | int plat_get_root_dir(char *dst, int len); |
27 | |
d34a42f9 |
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); |
b24e0f6c |
31 | void plat_status_msg_clear(void); |
d34a42f9 |
32 | |
1fb0dd88 |
33 | /* menu: enter (switch bpp, etc), begin/end drawing */ |
34 | void plat_video_menu_enter(int is_rom_loaded); |
35 | void plat_video_menu_begin(void); |
36 | void plat_video_menu_end(void); |
37 | |
b24e0f6c |
38 | void plat_video_wait_vsync(void); |
974fdb5b |
39 | void plat_video_toggle_renderer(int is_next, int force_16bpp, int is_menu); |
ee2a3bdf |
40 | void plat_validate_config(void); |
d34a42f9 |
41 | void plat_update_volume(int has_changed, int is_up); |
ee2a3bdf |
42 | |
713c9224 |
43 | int plat_is_dir(const char *path); |
0403eead |
44 | int plat_wait_event(int *fds_hnds, int count, int timeout_ms); |
45 | void plat_sleep_ms(int ms); |
713c9224 |
46 | |
b24e0f6c |
47 | /* timers, to be used for time diff and must refet to the same clock */ |
48 | unsigned int plat_get_ticks_ms(void); |
49 | unsigned int plat_get_ticks_us(void); |
50 | void plat_wait_till_us(unsigned int us); |
0403eead |
51 | |
b24e0f6c |
52 | const char *plat_get_credits(void); |
f2cf8472 |
53 | void plat_debug_cat(char *str); |
713c9224 |
54 | |
1fb0dd88 |
55 | #ifdef __cplusplus |
56 | } // extern "C" |
57 | #endif |
58 | |