implement input to avoid PD common dependency
[sdl_omap.git] / src / video / omapdss / omapsdl.h
CommitLineData
b78828bf 1
2#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
3
4#define err(fmt, ...) fprintf(stderr, "omapsdl: " fmt "\n", ##__VA_ARGS__)
5#define not_supported() fprintf(stderr, "omapsdl: %s not supported\n", __FUNCTION__)
0aab059f 6#if 0
b78828bf 7#define trace(fmt, ...) printf(" %s(" fmt ")\n", __FUNCTION__, ##__VA_ARGS__)
8#define dbg err
9#else
10#define trace(...)
11#define dbg(...)
12#endif
13
14void omapsdl_input_init(void);
15void omapsdl_input_bind(const char *kname, const char *sdlname);
83b5751b 16int omapsdl_input_get_events(int timeout,
17 int (*cb)(void *cb_arg, int sdl_kc, int is_pressed), void *cb_arg);
b78828bf 18
19void omapsdl_config(void);
20
21/* functions for standalone */
22void do_clut(void *dest, void *src, unsigned short *pal, int count);
0aab059f 23
24/* config */
25extern int gcfg_force_vsync;