[Spice-devel] [PATCH spice-gtk 05/25] Change surface_id to a guint32

Marc-André Lureau marcandre.lureau at gmail.com
Thu Jul 12 15:29:02 PDT 2012


That's the correct type used by the protocol.
---
 gtk/channel-display-priv.h |    2 +-
 gtk/channel-display.c      |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gtk/channel-display-priv.h b/gtk/channel-display-priv.h
index d327c28..ff0f484 100644
--- a/gtk/channel-display-priv.h
+++ b/gtk/channel-display-priv.h
@@ -38,7 +38,7 @@ G_BEGIN_DECLS
 
 typedef struct display_surface {
     RingItem                    link;
-    int                         surface_id;
+    guint32                     surface_id;
     bool                        primary;
     enum SpiceSurfaceFmt        format;
     int                         width, height, stride, size;
diff --git a/gtk/channel-display.c b/gtk/channel-display.c
index 801d867..952628c 100644
--- a/gtk/channel-display.c
+++ b/gtk/channel-display.c
@@ -100,7 +100,7 @@ static void spice_display_channel_up(SpiceChannel *channel);
 
 static void clear_surfaces(SpiceChannel *channel, gboolean keep_primary);
 static void clear_streams(SpiceChannel *channel);
-static display_surface *find_surface(SpiceDisplayChannelPrivate *c, int surface_id);
+static display_surface *find_surface(SpiceDisplayChannelPrivate *c, guint32 surface_id);
 static gboolean display_stream_render(display_stream *st);
 static void spice_display_channel_reset(SpiceChannel *channel, gboolean migrating);
 static void spice_display_channel_reset_capabilities(SpiceChannel *channel);
@@ -710,7 +710,7 @@ static void destroy_canvas(display_surface *surface)
     surface->canvas = NULL;
 }
 
-static display_surface *find_surface(SpiceDisplayChannelPrivate *c, int surface_id)
+static display_surface *find_surface(SpiceDisplayChannelPrivate *c, guint32 surface_id)
 {
     display_surface *surface;
     RingItem *item;
-- 
1.7.10.4



More information about the Spice-devel mailing list