X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fvideo%2Fomapdss%2Fpmsdl.h;h=0050e4dfa861343a3b40aaeed79ff38a07d640aa;hb=3cb98c5e548aaef74e77f0ba4503e361f574c497;hp=3a9a1dcf72cc43d7f4895c8c52466509146f26d9;hpb=0ec348b94bb36d7fa47ef9d5c5af56d6a78d2ba4;p=sdl_omap.git diff --git a/src/video/omapdss/pmsdl.h b/src/video/omapdss/pmsdl.h index 3a9a1dc..0050e4d 100644 --- a/src/video/omapdss/pmsdl.h +++ b/src/video/omapdss/pmsdl.h @@ -1,2 +1,17 @@ +#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0])) + +#define err(fmt, ...) fprintf(stderr, "psdl: " fmt "\n", ##__VA_ARGS__) +#define not_supported() fprintf(stderr, "psdl: %s not supported\n", __FUNCTION__) +#if 0 +#define trace(fmt, ...) printf(" %s(" fmt ")\n", __FUNCTION__, ##__VA_ARGS__) +#define dbg err +#else +#define trace(...) +#define dbg(...) +#endif + +void pmsdl_input_init(void); +void pmsdl_input_bind(const char *kname, const char *sdlname); + void do_clut(void *dest, void *src, unsigned short *pal, int count);