diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2010-06-24 14:36:17 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2010-06-29 12:29:45 +0200 |
commit | 36bdfe2f470f34b27f50249e7f942a987eb89e96 (patch) | |
tree | 7ded7b7967b914d0d63073a3e06548e67150ef0f /spice | |
parent | f433459af11b9a7f52f1f61cc61b66011be74b59 (diff) |
qxl abi: add QXLPoint & friends
Diffstat (limited to 'spice')
-rw-r--r-- | spice/qxl_dev.h | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/spice/qxl_dev.h b/spice/qxl_dev.h index 35db3b9..d1f066f 100644 --- a/spice/qxl_dev.h +++ b/spice/qxl_dev.h @@ -78,6 +78,21 @@ enum { QXL_IO_RANGE_SIZE }; +typedef struct SPICE_ATTR_PACKED QXLPointFix { + SPICE_FIXED28_4 x; + SPICE_FIXED28_4 y; +} QXLPointFix; + +typedef struct SPICE_ATTR_PACKED QXLPoint { + int32_t x; + int32_t y; +} QXLPoint; + +typedef struct SPICE_ATTR_PACKED QXLPoint16 { + int16_t x; + int16_t y; +} QXLPoint16; + /* qxl-1 compat: append only */ typedef struct SPICE_ATTR_PACKED QXLRom { uint32_t magic; @@ -253,7 +268,7 @@ typedef struct SPICE_ATTR_PACKED QXLCursorCmd { uint8_t type; union { struct SPICE_ATTR_PACKED { - SpicePoint16 position; + QXLPoint16 position; uint8_t visible; QXLPHYSICAL shape; } set; @@ -261,7 +276,7 @@ typedef struct SPICE_ATTR_PACKED QXLCursorCmd { uint16_t length; uint16_t frequency; } trail; - SpicePoint16 position; + QXLPoint16 position; } u; uint8_t device_data[QXL_CURSUR_DEVICE_DATA_SIZE]; //todo: dynamic size from rom } QXLCursorCmd; @@ -291,7 +306,7 @@ typedef struct SPICE_ATTR_PACKED QXLString { } QXLString; typedef struct SPICE_ATTR_PACKED QXLCopyBits { - SpicePoint src_pos; + QXLPoint src_pos; } QXLCopyBits; #define QXL_EFFECT_BLEND 0 @@ -305,7 +320,7 @@ typedef struct SPICE_ATTR_PACKED QXLCopyBits { typedef struct SPICE_ATTR_PACKED QXLPattern { QXLPHYSICAL pat; - SpicePoint pos; + QXLPoint pos; } QXLPattern; typedef struct SPICE_ATTR_PACKED QXLBrush { @@ -318,7 +333,7 @@ typedef struct SPICE_ATTR_PACKED QXLBrush { typedef struct SPICE_ATTR_PACKED QXLQMask { uint8_t flags; - SpicePoint pos; + QXLPoint pos; QXLPHYSICAL bitmap; } QXLQMask; |