X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fvideo%2Fomapdss%2Fomapsdl.h;fp=src%2Fvideo%2Fomapdss%2Fomapsdl.h;h=f0f1ac4ca8321a30747f290c43606c93ef76f934;hb=b78828bf6c654f3763394f153d31bab3fc5c8a64;hp=0000000000000000000000000000000000000000;hpb=3cb98c5e548aaef74e77f0ba4503e361f574c497;p=sdl_omap.git diff --git a/src/video/omapdss/omapsdl.h b/src/video/omapdss/omapsdl.h new file mode 100644 index 0000000..f0f1ac4 --- /dev/null +++ b/src/video/omapdss/omapsdl.h @@ -0,0 +1,21 @@ + +#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0])) + +#define err(fmt, ...) fprintf(stderr, "omapsdl: " fmt "\n", ##__VA_ARGS__) +#define not_supported() fprintf(stderr, "omapsdl: %s not supported\n", __FUNCTION__) +#if 1 +#define trace(fmt, ...) printf(" %s(" fmt ")\n", __FUNCTION__, ##__VA_ARGS__) +#define dbg err +#else +#define trace(...) +#define dbg(...) +#endif + +void omapsdl_input_init(void); +void omapsdl_input_bind(const char *kname, const char *sdlname); +int omapsdl_input_get_event(void *event_, int timeout); + +void omapsdl_config(void); + +/* functions for standalone */ +void do_clut(void *dest, void *src, unsigned short *pal, int count);