aboutsummaryrefslogtreecommitdiff
path: root/ui/vnc-palette.h
diff options
context:
space:
mode:
authorCorentin Chary <corentincj@iksaif.net>2011-02-04 09:06:00 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2011-02-23 16:28:28 -0600
commitf8562e326bb8bf084b7519a53c6f30627b80ac1e (patch)
tree36120b1799c06cf602794bdec8df0944e7ad3f12 /ui/vnc-palette.h
parent72aefb76f9268bec6eeb60530fd523b60effe610 (diff)
vnc: palette: and fill and color calls.
These two helpers are needed for zrle and zywrle. Signed-off-by: Corentin Chary <corentincj@iksaif.net> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'ui/vnc-palette.h')
-rw-r--r--ui/vnc-palette.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/vnc-palette.h b/ui/vnc-palette.h
index c646e4d0f0..3260885ff0 100644
--- a/ui/vnc-palette.h
+++ b/ui/vnc-palette.h
@@ -61,5 +61,8 @@ size_t palette_size(const VncPalette *palette);
void palette_iter(const VncPalette *palette,
void (*iter)(int idx, uint32_t color, void *opaque),
void *opaque);
+uint32_t palette_color(const VncPalette *palette, int idx, bool *found);
+size_t palette_fill(const VncPalette *palette,
+ uint32_t colors[VNC_PALETTE_MAX_SIZE]);
#endif /* VNC_PALETTE_H */