-/*
- * simple queue for commands.
- * each command can have up to two parameters (grow as needed)
- *
- * TODO: switch to gtk main loop. Then add gobject-introspection. then
- * write tests in python/guile/whatever.
- */
-typedef enum {
- PATH_PROGRESS,
- SIMPLE_CREATE_SURFACE,
- SIMPLE_DRAW,
- SIMPLE_DRAW_BITMAP,
- SIMPLE_DRAW_SOLID,
- SIMPLE_COPY_BITS,
- SIMPLE_DESTROY_SURFACE,
- SIMPLE_UPDATE,
- DESTROY_PRIMARY,
- CREATE_PRIMARY,
- SLEEP
-} CommandType;
-
-typedef struct CommandCreatePrimary {
- uint32_t width;
- uint32_t height;
-} CommandCreatePrimary;
-
-typedef struct CommandCreateSurface {
- uint32_t surface_id;
- uint32_t format;
- uint32_t width;
- uint32_t height;
- uint8_t *data;
-} CommandCreateSurface;
-
-typedef struct CommandDrawBitmap {
- QXLRect bbox;
- uint8_t *bitmap;
- uint32_t surface_id;
- uint32_t num_clip_rects;
- QXLRect *clip_rects;
-} CommandDrawBitmap;
-
-typedef struct CommandDrawSolid {
- QXLRect bbox;
- uint32_t color;
- uint32_t surface_id;
-} CommandDrawSolid;
-
-typedef struct CommandSleep {
- uint32_t secs;
-} CommandSleep;
-
-typedef struct Command Command;