[Spice-devel] [spice-server 3/3] channel: Remove no longer used red_channel_apply_clients{_data, }
Christophe Fergeau
cfergeau at redhat.com
Thu Aug 31 14:11:47 UTC 2017
Signed-off-by: Christophe Fergeau <cfergeau at redhat.com>
---
server/red-channel.c | 10 ----------
server/red-channel.h | 6 ------
2 files changed, 16 deletions(-)
diff --git a/server/red-channel.c b/server/red-channel.c
index f8fb4a3d3..5cf91126f 100644
--- a/server/red-channel.c
+++ b/server/red-channel.c
@@ -491,16 +491,6 @@ void red_channel_connect(RedChannel *channel, RedClient *client,
channel->priv->client_cbs.connect(channel, client, stream, migration, caps);
}
-void red_channel_apply_clients(RedChannel *channel, channel_client_callback cb)
-{
- g_list_foreach(channel->priv->clients, (GFunc)cb, NULL);
-}
-
-void red_channel_apply_clients_data(RedChannel *channel, channel_client_callback_data cb, void *data)
-{
- g_list_foreach(channel->priv->clients, (GFunc)cb, data);
-}
-
GList *red_channel_get_clients(RedChannel *channel)
{
return channel->priv->clients;
diff --git a/server/red-channel.h b/server/red-channel.h
index 8ea5a711e..90a45a400 100644
--- a/server/red-channel.h
+++ b/server/red-channel.h
@@ -203,12 +203,6 @@ uint32_t red_channel_min_pipe_size(RedChannel *channel);
/* return the max size of all the rcc pipe */
uint32_t red_channel_sum_pipes_size(RedChannel *channel);
-/* apply given function to all connected clients */
-typedef void (*channel_client_callback)(RedChannelClient *rcc);
-typedef void (*channel_client_callback_data)(RedChannelClient *rcc, void *data);
-void red_channel_apply_clients(RedChannel *channel, channel_client_callback v);
-void red_channel_apply_clients_data(RedChannel *channel, channel_client_callback_data v,
- void *data);
GList *red_channel_get_clients(RedChannel *channel);
guint red_channel_get_n_clients(RedChannel *channel);
struct RedsState* red_channel_get_server(RedChannel *channel);
--
2.13.5
More information about the Spice-devel
mailing list