rm usbjoy; replaced by evdev, needs rewrite anyway
[picodrive.git] / platform / common / plat.h
... / ...
CommitLineData
1#ifdef __cplusplus
2extern "C" {
3#endif
4
5/* stuff to be implemented by platform code */
6extern char cpu_clk_name[];
7/* TODO rename all these */
8extern const char * const keyNames[]; // TODO rm
9void emu_prepareDefaultConfig(void);
10void emu_platformDebugCat(char *str);
11void emu_forcedFrame(int opts);
12void emu_startSound(void);
13void emu_endSound(void);
14void emu_waitSound(void);
15void emu_ResetGame(void); // TODO mv rm?
16void emu_Init(void);
17void emu_Deinit(void);
18void emu_Loop(void);
19
20void emu_noticeMsgUpdated(void);
21int emu_getMainDir(char *dst, int len);
22void menu_romload_prepare(const char *rom_name);
23void menu_romload_end(void);
24
25void plat_early_init(void);
26void plat_init(void);
27void plat_finish(void);
28
29/* menu: enter (switch bpp, etc), begin/end drawing */
30void plat_video_menu_enter(int is_rom_loaded);
31void plat_video_menu_begin(void);
32void plat_video_menu_end(void);
33
34void plat_validate_config(void);
35
36int plat_is_dir(const char *path);
37int plat_wait_event(int *fds_hnds, int count, int timeout_ms);
38void plat_sleep_ms(int ms);
39
40/* ms counter, to be used for time diff */
41unsigned int plat_get_ticks_ms(void);
42
43const char *plat_get_credits(void);
44
45#ifdef __cplusplus
46} // extern "C"
47#endif
48