[PATCH spice-common 1/8] canvas: Move PixmanData to C file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This structure is used only in canvas_utils.c

Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 common/canvas_utils.c | 9 +++++++++
 common/canvas_utils.h | 9 ---------
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/common/canvas_utils.c b/common/canvas_utils.c
index 0be761a..626f17d 100644
--- a/common/canvas_utils.c
+++ b/common/canvas_utils.c
@@ -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)
 {
diff --git a/common/canvas_utils.h b/common/canvas_utils.h
index ef3f9c5..63d0fbb 100644
--- a/common/canvas_utils.h
+++ b/common/canvas_utils.h
@@ -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);
-- 
2.14.3

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]