add input, basic config
[sdl_omap.git] / src / video / omapdss / pmsdl.h
CommitLineData
0ec348b9 1
3cb98c5e 2#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
3
4#define err(fmt, ...) fprintf(stderr, "psdl: " fmt "\n", ##__VA_ARGS__)
5#define not_supported() fprintf(stderr, "psdl: %s not supported\n", __FUNCTION__)
6#if 0
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 pmsdl_input_init(void);
15void pmsdl_input_bind(const char *kname, const char *sdlname);
16
0ec348b9 17void do_clut(void *dest, void *src, unsigned short *pal, int count);