[Spice-devel] [PATCH spice-server v8 08/12] fixup! Convert RedChannel hierarchy to GObject

Frediano Ziglio fziglio at redhat.com
Mon Oct 24 08:40:51 UTC 2016


Return constant from red_channel_get_local_capabilities

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/red-channel.c | 2 +-
 server/red-channel.h | 2 +-
 server/reds.c        | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/server/red-channel.c b/server/red-channel.c
index 7a03307..bff7841 100644
--- a/server/red-channel.c
+++ b/server/red-channel.c
@@ -1064,7 +1064,7 @@ void red_channel_reset_thread_id(RedChannel *self)
     self->priv->thread_id = pthread_self();
 }
 
-RedChannelCapabilities* red_channel_get_local_capabilities(RedChannel *self)
+const RedChannelCapabilities* red_channel_get_local_capabilities(RedChannel *self)
 {
     return &self->priv->local_caps;
 }
diff --git a/server/red-channel.h b/server/red-channel.h
index bf4772b..0bba15b 100644
--- a/server/red-channel.h
+++ b/server/red-channel.h
@@ -331,7 +331,7 @@ StatNodeRef red_channel_get_stat_node(RedChannel *channel);
 IncomingHandlerInterface* red_channel_get_incoming_handler(RedChannel *self);
 OutgoingHandlerInterface* red_channel_get_outgoing_handler(RedChannel *self);
 
-RedChannelCapabilities* red_channel_get_local_capabilities(RedChannel *self);
+const RedChannelCapabilities* red_channel_get_local_capabilities(RedChannel *self);
 
 struct RedClient {
     RedsState *reds;
diff --git a/server/reds.c b/server/reds.c
index 3256385..186c2e1 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -1526,7 +1526,7 @@ static int reds_send_link_ack(RedsState *reds, RedLinkInfo *link)
     SpiceLinkHeader header;
     SpiceLinkReply ack;
     RedChannel *channel;
-    RedChannelCapabilities *channel_caps;
+    const RedChannelCapabilities *channel_caps;
     BUF_MEM *bmBuf;
     BIO *bio = NULL;
     int ret = FALSE;
-- 
2.7.4



More information about the Spice-devel mailing list