| 1 | #ifdef __cplusplus |
| 2 | extern "C" { |
| 3 | #endif |
| 4 | |
| 5 | /* stuff to be implemented by platform code */ |
| 6 | extern char cpu_clk_name[]; |
| 7 | |
| 8 | void pemu_prep_defconfig(void); |
| 9 | void pemu_loop_prep(void); |
| 10 | void pemu_loop_end(void); |
| 11 | void pemu_forced_frame(int opts); |
| 12 | void pemu_update_display(const char *fps, const char *notice_msg); |
| 13 | |
| 14 | void pemu_sound_start(void); |
| 15 | void pemu_sound_stop(void); |
| 16 | void pemu_sound_wait(void); |
| 17 | |
| 18 | void plat_early_init(void); |
| 19 | void plat_init(void); |
| 20 | void plat_finish(void); |
| 21 | |
| 22 | /* return the dir/ where configs, saves, bios, etc. are found */ |
| 23 | int plat_get_root_dir(char *dst, int len); |
| 24 | |
| 25 | /* used before things blocking for a while (these funcs redraw on return) */ |
| 26 | void plat_status_msg_busy_first(const char *msg); |
| 27 | void plat_status_msg_busy_next(const char *msg); |
| 28 | void plat_status_msg_clear(void); |
| 29 | |
| 30 | /* menu: enter (switch bpp, etc), begin/end drawing */ |
| 31 | void plat_video_menu_enter(int is_rom_loaded); |
| 32 | void plat_video_menu_begin(void); |
| 33 | void plat_video_menu_end(void); |
| 34 | |
| 35 | void plat_video_wait_vsync(void); |
| 36 | void plat_video_toggle_renderer(int is_next, int force_16bpp, int is_menu); |
| 37 | void plat_validate_config(void); |
| 38 | void plat_update_volume(int has_changed, int is_up); |
| 39 | |
| 40 | int plat_is_dir(const char *path); |
| 41 | int plat_wait_event(int *fds_hnds, int count, int timeout_ms); |
| 42 | void plat_sleep_ms(int ms); |
| 43 | |
| 44 | /* timers, to be used for time diff and must refer to the same clock */ |
| 45 | unsigned int plat_get_ticks_ms(void); |
| 46 | unsigned int plat_get_ticks_us(void); |
| 47 | void plat_wait_till_us(unsigned int us); |
| 48 | |
| 49 | const char *plat_get_credits(void); |
| 50 | void plat_debug_cat(char *str); |
| 51 | |
| 52 | #ifdef __cplusplus |
| 53 | } // extern "C" |
| 54 | #endif |
| 55 | |