diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2010-06-20 15:24:49 +0300 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2012-03-20 15:25:44 +0100 |
commit | e48d14df78319c69f03563a2c009bb4a6a857873 (patch) | |
tree | 995100c7377c93b2fde31dca45050a3cb8351e49 /common/canvas_base.h | |
parent | 075087b180909a88ee3605d2255da665c605516b (diff) | |
download | spice-common-e48d14df78319c69f03563a2c009bb4a6a857873.tar.gz spice-common-e48d14df78319c69f03563a2c009bb4a6a857873.tar.xz spice-common-e48d14df78319c69f03563a2c009bb4a6a857873.zip |
applying zlib compression over glz on WAN connection
Diffstat (limited to 'common/canvas_base.h')
-rw-r--r-- | common/canvas_base.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/common/canvas_base.h b/common/canvas_base.h index b54fce5..9dfbe85 100644 --- a/common/canvas_base.h +++ b/common/canvas_base.h @@ -32,6 +32,7 @@ typedef struct _SpiceImageSurfaces SpiceImageSurfaces; typedef struct _SpicePaletteCache SpicePaletteCache; typedef struct _SpiceGlzDecoder SpiceGlzDecoder; typedef struct _SpiceJpegDecoder SpiceJpegDecoder; +typedef struct _SpiceZlibDecoder SpiceZlibDecoder; typedef struct _SpiceVirtMapping SpiceVirtMapping; typedef struct _SpiceCanvas SpiceCanvas; @@ -108,6 +109,18 @@ struct _SpiceJpegDecoder { }; typedef struct { + void (*decode)(SpiceZlibDecoder *decoder, + uint8_t *data, + int data_size, + uint8_t *dest, + int dest_size); +} SpiceZlibDecoderOps; + +struct _SpiceZlibDecoder { + SpiceZlibDecoderOps *ops; +}; + +typedef struct { void *(*get_virt)(SpiceVirtMapping *mapping, unsigned long addr, uint32_t add_size); void (*validate_virt)(SpiceVirtMapping *mapping, unsigned long virt, unsigned long from_addr, uint32_t add_size); |