further unification and 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);
9void pemu_loop(void);
10void pemu_forced_frame(int opts);
11void pemu_sound_start(void);
12void pemu_sound_stop(void);
13void pemu_sound_wait(void);
14
713c9224 15void menu_romload_prepare(const char *rom_name);
16void menu_romload_end(void);
1fb0dd88 17
ee2a3bdf 18void plat_early_init(void);
42171343 19void plat_init(void);
20void plat_finish(void);
21
f2cf8472 22/* return the dir/ where configs, saves, bios, etc. are found */
23int plat_get_root_dir(char *dst, int len);
24
d34a42f9 25/* to be used while emulation is starting or running */
26void plat_status_msg(const char *format, ...);
27
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);
31
1fb0dd88 32/* menu: enter (switch bpp, etc), begin/end drawing */
33void plat_video_menu_enter(int is_rom_loaded);
34void plat_video_menu_begin(void);
35void plat_video_menu_end(void);
36
d34a42f9 37void plat_video_toggle_renderer(void);
ee2a3bdf 38void plat_validate_config(void);
d34a42f9 39void plat_update_volume(int has_changed, int is_up);
ee2a3bdf 40
713c9224 41int plat_is_dir(const char *path);
0403eead 42int plat_wait_event(int *fds_hnds, int count, int timeout_ms);
43void plat_sleep_ms(int ms);
713c9224 44
0403eead 45/* ms counter, to be used for time diff */
46unsigned int plat_get_ticks_ms(void);
47
48const char *plat_get_credits(void);
f2cf8472 49void plat_debug_cat(char *str);
713c9224 50
1fb0dd88 51#ifdef __cplusplus
52} // extern "C"
53#endif
54