fix crash when specifying --source on command line
[rofl0r-gnuboy.git] / sys.h
blob944f3cbcca69e8d5e7ba7f64ade7185c48f537dc
1 #ifndef VID_H
2 #define VID_H
4 /* stuff implemented by the different sys/ backends */
6 void vid_begin();
7 void vid_end();
8 void vid_init();
9 void vid_preinit();
10 void vid_close();
11 void vid_setpal(int i, int r, int g, int b);
12 void vid_settitle(char *title);
14 void pcm_init();
15 int pcm_submit();
16 void pcm_close();
17 void pcm_pause(int dopause);
19 void ev_poll(int wait);
21 void sys_checkdir(char *path, int wr);
22 void sys_sleep(int us);
23 void sys_sanitize(char *s);
25 void joy_init();
26 void joy_poll();
27 void joy_close();
29 void kb_init();
30 void kb_poll();
31 void kb_close();
34 /* FIXME these have different prototype for obsolete ( == M$ ) platforms */
35 #include <sys/time.h>
36 int sys_elapsed(struct timeval *prev);
37 void sys_initpath();
39 #endif