[Spice-commits] server/red-parse-qxl.c server/red-parse-qxl.h

Frediano Ziglio fziglio at kemper.freedesktop.org
Tue Feb 16 13:13:29 UTC 2016


 server/red-parse-qxl.c |    8 ++++++++
 server/red-parse-qxl.h |    8 --------
 2 files changed, 8 insertions(+), 8 deletions(-)

New commits:
commit 51bd316ce59742b79da1cd21c57e7f64406d9e54
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Tue Feb 16 11:32:33 2016 +0000

    make RedDataChunk structure private inside red-parse-qxl.c
    
    The structure is strictly used by the parser only, no reason to make it
    public.
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Pavel Grunt <pgrunt at redhat.com>

diff --git a/server/red-parse-qxl.c b/server/red-parse-qxl.c
index 4d2cc72..18b7ea6 100644
--- a/server/red-parse-qxl.c
+++ b/server/red-parse-qxl.c
@@ -47,6 +47,14 @@ G_STATIC_ASSERT(MAX_DATA_CHUNK <= G_MAXINT32);
 
 #define INVALID_SIZE ((size_t) -1)
 
+typedef struct RedDataChunk RedDataChunk;
+struct RedDataChunk {
+    uint32_t data_size;
+    RedDataChunk *prev_chunk;
+    RedDataChunk *next_chunk;
+    uint8_t *data;
+};
+
 #if 0
 static void hexdump_qxl(RedMemSlotInfo *slots, int group_id,
                         QXLPHYSICAL addr, uint8_t bytes)
diff --git a/server/red-parse-qxl.h b/server/red-parse-qxl.h
index b5f95e6..9c30572 100644
--- a/server/red-parse-qxl.h
+++ b/server/red-parse-qxl.h
@@ -76,14 +76,6 @@ typedef struct RedMessage {
     uint8_t *data;
 } RedMessage;
 
-typedef struct RedDataChunk RedDataChunk;
-struct RedDataChunk {
-    uint32_t data_size;
-    RedDataChunk *prev_chunk;
-    RedDataChunk *next_chunk;
-    uint8_t *data;
-};
-
 typedef struct RedSurfaceCreate {
     uint32_t format;
     uint32_t width;


More information about the Spice-commits mailing list