From: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx> --- gtk/spice-session-priv.h | 1 + gtk/spice-session.c | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gtk/spice-session-priv.h b/gtk/spice-session-priv.h index 55fee47..95de0fc 100644 --- a/gtk/spice-session-priv.h +++ b/gtk/spice-session-priv.h @@ -131,6 +131,7 @@ void spice_session_set_migration(SpiceSession *session, gboolean full_migration); void spice_session_abort_migration(SpiceSession *session); void spice_session_set_migration_state(SpiceSession *session, SpiceSessionMigration state); +SpiceSessionMigration spice_session_get_migration_state(SpiceSession *session); void spice_session_set_port(SpiceSession *session, int port, gboolean tls); void spice_session_get_pubkey(SpiceSession *session, guint8 **pubkey, guint *size); diff --git a/gtk/spice-session.c b/gtk/spice-session.c index bcbba27..b180d34 100644 --- a/gtk/spice-session.c +++ b/gtk/spice-session.c @@ -454,7 +454,7 @@ static void spice_session_get_property(GObject *gobject, g_value_set_flags(value, s->verify); break; case PROP_MIGRATION_STATE: - g_value_set_enum(value, s->migration_state); + g_value_set_enum(value, spice_session_get_migration_state(session)); break; case PROP_SMARTCARD: g_value_set_boolean(value, s->smartcard); @@ -2037,6 +2037,15 @@ void spice_session_set_migration_state(SpiceSession *session, SpiceSessionMigrat } G_GNUC_INTERNAL +SpiceSessionMigration spice_session_get_migration_state(SpiceSession *session) +{ + SpiceSessionPrivate *s = SPICE_SESSION_GET_PRIVATE(session); + + g_return_val_if_fail(s != NULL, SPICE_SESSION_MIGRATION_NONE); + return s->migration_state; +} + +G_GNUC_INTERNAL const gchar* spice_session_get_password(SpiceSession *session) { SpiceSessionPrivate *s = SPICE_SESSION_GET_PRIVATE(session); -- 1.8.3.1 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel