[Spice-devel] [PATCH spice-server] dcc: Avoid to include RedChannelClient private header

Frediano Ziglio fziglio at redhat.com
Fri Dec 2 19:40:18 UTC 2016


Make sure we don't tamper with RedChannelClient internals.

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/dcc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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;
-- 
2.9.3



More information about the Spice-devel mailing list