2 #define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
4 #define err(fmt, ...) fprintf(stderr, "omapsdl: " fmt "\n", ##__VA_ARGS__)
5 #define not_supported() fprintf(stderr, "omapsdl: %s not supported\n", __FUNCTION__)
7 #define trace(fmt, ...) printf(" %s(" fmt ")\n", __FUNCTION__, ##__VA_ARGS__)
14 void omapsdl_input_init(void);
15 void omapsdl_input_bind(const char *kname, const char *sdlname);
16 int omapsdl_input_get_events(int timeout_ms,
17 int (*key_cb)(void *cb_arg, int sdl_kc, int is_pressed),
18 int (*ts_cb)(void *cb_arg, int x, int y, unsigned int pressure),
20 void omapsdl_input_finish(void);
22 void omapsdl_config(void);
24 /* functions for standalone */
25 void do_clut(void *dest, void *src, unsigned short *pal, int count);
28 extern int gcfg_force_vsync;