summaryrefslogtreecommitdiffstats
path: root/server/display-channel.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2013-09-24 17:29:00 +0200
committerFrediano Ziglio <fziglio@redhat.com>2015-11-20 14:35:20 +0000
commit75ab0c6817715725fcc023236e4688851a1bd0cf (patch)
tree8e81753bb5ae9bb629eca20ca675bcaf64de302b /server/display-channel.c
parent25203e9a6e0f35b89342747e759400d1ab6d3519 (diff)
downloadspice-75ab0c6817715725fcc023236e4688851a1bd0cf.tar.gz
spice-75ab0c6817715725fcc023236e4688851a1bd0cf.tar.xz
spice-75ab0c6817715725fcc023236e4688851a1bd0cf.zip
worker: move more free_glz_drawable
Acked-by: Fabiano Fidêncio <fidencio@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'server/display-channel.c')
-rw-r--r--server/display-channel.c22
1 files changed, 17 insertions, 5 deletions
diff --git a/server/display-channel.c b/server/display-channel.c
index 3b7a0164..d455a0db 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -850,14 +850,26 @@ void display_channel_flush_all_surfaces(DisplayChannel *display)
}
}
-static void rcc_free_glz_drawables_to_free(RedChannelClient *rcc)
+void display_channel_free_glz_drawables_to_free(DisplayChannel *display)
{
- DisplayChannelClient *dcc = RCC_TO_DCC(rcc);
+ RingItem *link, *next;
+ DisplayChannelClient *dcc;
- dcc_free_glz_drawables_to_free(dcc);
+ spice_return_if_fail(display);
+
+ DCC_FOREACH_SAFE(link, next, dcc, RED_CHANNEL(display)) {
+ dcc_free_glz_drawables_to_free(dcc);
+ }
}
-void display_channel_free_glz_drawables_to_free(DisplayChannel *display)
+void display_channel_free_glz_drawables(DisplayChannel *display)
{
- red_channel_apply_clients(RED_CHANNEL(display), rcc_free_glz_drawables_to_free);
+ RingItem *link, *next;
+ DisplayChannelClient *dcc;
+
+ spice_return_if_fail(display);
+
+ DCC_FOREACH_SAFE(link, next, dcc, RED_CHANNEL(display)) {
+ dcc_free_glz_drawables(dcc);
+ }
}