summaryrefslogtreecommitdiffstats
path: root/common/canvas_base.h
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2010-06-20 15:24:49 +0300
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:25:44 +0100
commite48d14df78319c69f03563a2c009bb4a6a857873 (patch)
tree995100c7377c93b2fde31dca45050a3cb8351e49 /common/canvas_base.h
parent075087b180909a88ee3605d2255da665c605516b (diff)
downloadspice-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.h13
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);