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