qxl abi: zap SPICE_ADDRESS for clip rects and paths.

This commit is contained in:
Gerd Hoffmann 2010-06-25 16:21:50 +02:00
parent 5938ace152
commit 65f9bef4fe
2 changed files with 10 additions and 4 deletions

View File

@ -67,12 +67,12 @@ typedef struct SPICE_ATTR_PACKED SpiceRect {
typedef struct SPICE_ATTR_PACKED SpicePathSeg {
uint32_t flags;
uint32_t count;
uint8_t data[0];
SpicePointFix points[0];
} SpicePathSeg;
typedef struct SPICE_ATTR_PACKED SpicePath {
uint32_t size;
uint8_t segments[0];
SpicePathSeg segments[0]; /* alert: variable size elements */
} SpicePath;
typedef struct SPICE_ATTR_PACKED SpiceClipRects {
@ -82,7 +82,7 @@ typedef struct SPICE_ATTR_PACKED SpiceClipRects {
typedef struct SPICE_ATTR_PACKED SpiceClip {
uint32_t type;
SPICE_ADDRESS data;
SpiceClipRects *rects;
} SpiceClip;
typedef struct SPICE_ATTR_PACKED SpicePattern {
@ -260,7 +260,7 @@ typedef struct SPICE_ATTR_PACKED SpiceLineAttr {
} SpiceLineAttr;
typedef struct SPICE_ATTR_PACKED SpiceStroke {
SPICE_ADDRESS path;
SpicePath *path;
SpiceLineAttr attr;
SpiceBrush brush;
uint16_t fore_mode;

View File

@ -522,6 +522,12 @@ enum {
QXL_PATH_BEZIER = (1 << 4),
};
typedef struct SPICE_ATTR_PACKED QXLPathSeg {
uint32_t flags;
uint32_t count;
QXLPointFix points[0];
} QXLPathSeg;
typedef struct SPICE_ATTR_PACKED QXLPath {
uint32_t data_size;
QXLDataChunk chunk;