summaryrefslogtreecommitdiff
path: root/server/red-channel.c
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2015-12-09 13:17:42 +0000
committerFrediano Ziglio <fziglio@redhat.com>2015-12-10 17:22:59 +0000
commitb12187b332123da383f52748e2865e0309d45d76 (patch)
tree0009f37139820733e8d57d7073880ad8ed32742d /server/red-channel.c
parentc8010f020105ba6b81f6d9521003cd142fd3ba02 (diff)
channel: rename red_channel_(client_)waits_* functions
Make clear that these funcion are just checking a condition. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
Diffstat (limited to 'server/red-channel.c')
-rw-r--r--server/red-channel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/red-channel.c b/server/red-channel.c
index 2a64bc8a..4b1d4263 100644
--- a/server/red-channel.c
+++ b/server/red-channel.c
@@ -960,12 +960,12 @@ static void red_channel_client_seamless_migration_done(RedChannelClient *rcc)
pthread_mutex_unlock(&rcc->client->lock);
}
-int red_channel_client_waits_for_migrate_data(RedChannelClient *rcc)
+int red_channel_client_is_waiting_for_migrate_data(RedChannelClient *rcc)
{
return rcc->wait_migrate_data;
}
-int red_channel_waits_for_migrate_data(RedChannel *channel)
+int red_channel_is_waiting_for_migrate_data(RedChannel *channel)
{
RedChannelClient *rcc;
@@ -978,7 +978,7 @@ int red_channel_waits_for_migrate_data(RedChannel *channel)
}
spice_assert(channel->clients_num == 1);
rcc = SPICE_CONTAINEROF(ring_get_head(&channel->clients), RedChannelClient, channel_link);
- return red_channel_client_waits_for_migrate_data(rcc);
+ return red_channel_client_is_waiting_for_migrate_data(rcc);
}
static void red_channel_client_default_connect(RedChannel *channel, RedClient *client,
@@ -1415,7 +1415,7 @@ static void red_channel_handle_migrate_data(RedChannelClient *rcc, uint32_t size
if (!rcc->channel->channel_cbs.handle_migrate_data) {
return;
}
- if (!red_channel_client_waits_for_migrate_data(rcc)) {
+ if (!red_channel_client_is_waiting_for_migrate_data(rcc)) {
spice_channel_client_error(rcc, "unexpected");
return;
}