aboutsummaryrefslogtreecommitdiff
path: root/ui/vnc-palette.h
diff options
context:
space:
mode:
authorCorentin Chary <corentincj@iksaif.net>2011-02-04 09:05:59 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2011-02-23 16:28:28 -0600
commit72aefb76f9268bec6eeb60530fd523b60effe610 (patch)
tree42996fc500d667e81f674e095126664d980c70c6 /ui/vnc-palette.h
parente31e3694afef58ba191cbcc6875ec243e5971268 (diff)
vnc: palette: add palette_init calls
This allow to use palette on the stack instead of always allocating them. 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/vnc-palette.h b/ui/vnc-palette.h
index f57d0e7405..c646e4d0f0 100644
--- a/ui/vnc-palette.h
+++ b/ui/vnc-palette.h
@@ -51,6 +51,7 @@ typedef struct VncPalette {
} VncPalette;
VncPalette *palette_new(size_t max, int bpp);
+void palette_init(VncPalette *palette, size_t max, int bpp);
void palette_destroy(VncPalette *palette);
int palette_put(VncPalette *palette, uint32_t color);