[Spice-devel] [PATCHv2 06/22] smartcard: use spice_session_is_for_migration()

Marc-André Lureau marcandre.lureau at redhat.com
Wed Nov 26 09:55:57 PST 2014


---
 gtk/channel-smartcard.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gtk/channel-smartcard.c b/gtk/channel-smartcard.c
index 243a8ce..8588ae0 100644
--- a/gtk/channel-smartcard.c
+++ b/gtk/channel-smartcard.c
@@ -136,7 +136,7 @@ static void spice_smartcard_channel_constructed(GObject *object)
     g_return_if_fail(s != NULL);
 
 #ifdef USE_SMARTCARD
-    if (!s->priv->migration_copy) {
+    if (!spice_session_is_for_migration(s)) {
         SpiceSmartcardChannel *channel = SPICE_SMARTCARD_CHANNEL(object);
         SpiceSmartcardManager *manager = spice_smartcard_manager_get();
 
@@ -467,7 +467,7 @@ static void spice_smartcard_channel_up_cb(GObject *source_object,
 
 static void spice_smartcard_channel_up(SpiceChannel *channel)
 {
-    if (spice_channel_get_session(SPICE_CHANNEL(channel))->priv->migration_copy)
+    if (spice_session_is_for_migration(spice_channel_get_session(channel)))
         return;
 
     spice_smartcard_manager_init_async(spice_channel_get_session(channel),
-- 
2.1.0



More information about the Spice-devel mailing list