mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-01-05 02:09:44 +00:00
canvas: Move PixmanData to C file
This structure is used only in canvas_utils.c Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
27e32fa8a6
commit
fea48544a8
@ -27,6 +27,15 @@
|
||||
static int gdi_handlers = 0;
|
||||
#endif
|
||||
|
||||
typedef struct PixmanData {
|
||||
#ifdef WIN32
|
||||
HBITMAP bitmap;
|
||||
HANDLE mutex;
|
||||
#endif
|
||||
uint8_t *data;
|
||||
pixman_format_code_t format;
|
||||
} PixmanData;
|
||||
|
||||
static void release_data(SPICE_GNUC_UNUSED pixman_image_t *image,
|
||||
void *release_data)
|
||||
{
|
||||
|
||||
@ -31,15 +31,6 @@
|
||||
|
||||
SPICE_BEGIN_DECLS
|
||||
|
||||
typedef struct PixmanData {
|
||||
#ifdef WIN32
|
||||
HBITMAP bitmap;
|
||||
HANDLE mutex;
|
||||
#endif
|
||||
uint8_t *data;
|
||||
pixman_format_code_t format;
|
||||
} PixmanData;
|
||||
|
||||
void spice_pixman_image_set_format(pixman_image_t *image,
|
||||
pixman_format_code_t format);
|
||||
int spice_pixman_image_get_format(pixman_image_t *image, pixman_format_code_t *format);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user