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