diff options
author | Corentin Chary <corentincj@iksaif.net> | 2010-05-19 09:24:09 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-06-01 12:53:09 -0500 |
commit | a885211eed4e853c64d1419a0113c12048ecd5a1 (patch) | |
tree | 72ec51401215ae87203e9fb79e6539155c37538e /vnc.h | |
parent | 161c4f20bfbd54f0b77426adccb68ee831678af0 (diff) | |
download | qemu-a885211eed4e853c64d1419a0113c12048ecd5a1.zip qemu-a885211eed4e853c64d1419a0113c12048ecd5a1.tar.gz qemu-a885211eed4e853c64d1419a0113c12048ecd5a1.tar.bz2 |
vnc: return the number of rectangles
Some encodings like tight supports tiling (spliting in
multiple sub-rectangles). So we needed a way to tell
vnc_update_client() how much rectangles are in the buffer.
zlib, raw and hextile always send a full rectangle.
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'vnc.h')
-rw-r--r-- | vnc.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -398,13 +398,13 @@ void vnc_framebuffer_update(VncState *vs, int x, int y, int w, int h, void vnc_convert_pixel(VncState *vs, uint8_t *buf, uint32_t v); /* Encodings */ -void vnc_raw_send_framebuffer_update(VncState *vs, int x, int y, int w, int h); +int vnc_raw_send_framebuffer_update(VncState *vs, int x, int y, int w, int h); -void vnc_hextile_send_framebuffer_update(VncState *vs, int x, +int vnc_hextile_send_framebuffer_update(VncState *vs, int x, int y, int w, int h); void vnc_hextile_set_pixel_conversion(VncState *vs, int generic); -void vnc_zlib_send_framebuffer_update(VncState *vs, int x, int y, int w, int h); +int vnc_zlib_send_framebuffer_update(VncState *vs, int x, int y, int w, int h); void vnc_zlib_clear(VncState *vs); #endif /* __QEMU_VNC_H */ |