mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
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>
This commit is contained in:
parent
e31e3694af
commit
72aefb76f9
2 changed files with 8 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue