[Spice-commits] server/dcc.c

Frediano Ziglio fziglio at kemper.freedesktop.org
Fri Dec 2 22:15:17 UTC 2016


 server/dcc.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit c6e816309322fb3d69731928414e8159e0ad9c5e
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Fri Dec 2 19:39:15 2016 +0000

    dcc: Avoid to include RedChannelClient private header
    
    Make sure we don't tamper with RedChannelClient internals.
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Jonathon Jongsma <jjongsma at redhat.com>

diff --git a/server/dcc.c b/server/dcc.c
index cf5f44c..afe37b1 100644
--- a/server/dcc.c
+++ b/server/dcc.c
@@ -22,7 +22,6 @@
 #include "dcc-private.h"
 #include "display-channel.h"
 #include "display-channel-private.h"
-#include "red-channel-client-private.h"
 #include "red-client.h"
 #include "main-channel-client.h"
 #include "spice-server-enums.h"
@@ -222,7 +221,7 @@ int dcc_clear_surface_drawables_from_pipe(DisplayChannelClient *dcc, int surface
        no other drawable depends on them */
 
     rcc = RED_CHANNEL_CLIENT(dcc);
-    for (l = rcc->priv->pipe.head; l != NULL; ) {
+    for (l = red_channel_client_get_pipe(rcc)->head; l != NULL; ) {
         Drawable *drawable;
         RedDrawablePipeItem *dpi = NULL;
         int depend_found = FALSE;


More information about the Spice-commits mailing list