[Spice-devel] [PATCH spice-server v2] reds: use bool for RedsState::src_do_seamless_migrate
Frediano Ziglio
fziglio at redhat.com
Fri Jun 16 13:31:27 UTC 2017
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
server/reds-private.h | 4 ++--
server/reds.c | 2 +-
server/reds.h | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/server/reds-private.h b/server/reds-private.h
index 37af888..68c3c45 100644
--- a/server/reds-private.h
+++ b/server/reds-private.h
@@ -94,8 +94,8 @@ struct RedsState {
int mig_inprogress;
int expect_migrate;
- int src_do_seamless_migrate; /* per migration. Updated after the migration handshake
- between the 2 servers */
+ bool src_do_seamless_migrate; /* per migration. Updated after the migration handshake
+ between the 2 servers */
bool dst_do_seamless_migrate; /* per migration. Updated after the migration handshake
between the 2 servers */
GList *mig_target_clients;
diff --git a/server/reds.c b/server/reds.c
index 168b3d8..82fb1fa 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -1156,7 +1156,7 @@ void reds_on_main_agent_data(RedsState *reds, MainChannelClient *mcc, const void
red_char_device_write_buffer_add(RED_CHAR_DEVICE(reds->agent_dev), dev->priv->recv_from_client_buf);
}
-void reds_on_main_migrate_connected(RedsState *reds, int seamless)
+void reds_on_main_migrate_connected(RedsState *reds, bool seamless)
{
reds->src_do_seamless_migrate = seamless;
if (reds->mig_wait_connect) {
diff --git a/server/reds.h b/server/reds.h
index 2fc50f8..cf34cd0 100644
--- a/server/reds.h
+++ b/server/reds.h
@@ -81,7 +81,7 @@ uint8_t *reds_get_agent_data_buffer(RedsState *reds, MainChannelClient *mcc, siz
void reds_release_agent_data_buffer(RedsState *reds, uint8_t *buf);
void reds_on_main_agent_data(RedsState *reds, MainChannelClient *mcc, const void *message,
size_t size);
-void reds_on_main_migrate_connected(RedsState *reds, int seamless); //should be called when all the clients
+void reds_on_main_migrate_connected(RedsState *reds, bool seamless); //should be called when all the clients
// are connected to the target
bool reds_handle_migrate_data(RedsState *recs, MainChannelClient *mcc,
SpiceMigrateDataMain *mig_data, uint32_t size);
--
2.9.4
More information about the Spice-devel
mailing list