some pandora tweaks
[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[];
0c9ae592 7extern const char *renderer_names[];
8extern const char *renderer_names32x[];
93c18cb4 9
10void pemu_prep_defconfig(void);
d2f29611 11void pemu_validate_config(void);
b5bfb864 12void pemu_loop_prep(void);
13void pemu_loop_end(void);
209a7eff 14void pemu_forced_frame(int opts, int no_scale);
b188c2b6 15void pemu_finalize_frame(const char *fps, const char *notice_msg);
b5bfb864 16
93c18cb4 17void pemu_sound_start(void);
18void pemu_sound_stop(void);
19void pemu_sound_wait(void);
20
fa8d1331 21void plat_early_init(void);
d572cbad 22void plat_init(void);
23void plat_finish(void);
24
93c18cb4 25/* return the dir/ where configs, saves, bios, etc. are found */
26int plat_get_root_dir(char *dst, int len);
27
388947f3 28/* used before things blocking for a while (these funcs redraw on return) */
29void plat_status_msg_busy_first(const char *msg);
30void plat_status_msg_busy_next(const char *msg);
b5bfb864 31void plat_status_msg_clear(void);
388947f3 32
24b24674 33/* menu: enter (switch bpp, etc), begin/end drawing */
34void plat_video_menu_enter(int is_rom_loaded);
35void plat_video_menu_begin(void);
36void plat_video_menu_end(void);
37
b188c2b6 38void plat_video_flip(void);
b5bfb864 39void plat_video_wait_vsync(void);
662e622b 40void plat_video_toggle_renderer(int change, int menu_call);
b188c2b6 41
388947f3 42void plat_update_volume(int has_changed, int is_up);
fa8d1331 43
049a6b3e 44int plat_is_dir(const char *path);
4ab30ad4 45int plat_wait_event(int *fds_hnds, int count, int timeout_ms);
46void plat_sleep_ms(int ms);
049a6b3e 47
8ced8d2b 48/* timers, to be used for time diff and must refer to the same clock */
b5bfb864 49unsigned int plat_get_ticks_ms(void);
50unsigned int plat_get_ticks_us(void);
51void plat_wait_till_us(unsigned int us);
4ab30ad4 52
b5bfb864 53const char *plat_get_credits(void);
93c18cb4 54void plat_debug_cat(char *str);
049a6b3e 55
24b24674 56#ifdef __cplusplus
57} // extern "C"
58#endif
59