standalone: refactor for becoming also a SDL driver
[sdl_omap.git] / src / video / omapdss / omapsdl.h
diff --git a/src/video/omapdss/omapsdl.h b/src/video/omapdss/omapsdl.h
new file mode 100644 (file)
index 0000000..f0f1ac4
--- /dev/null
@@ -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);