diff --git a/src/backends/meta-remote-desktop-session.c b/src/backends/meta-remote-desktop-session.c index 512eda1fc..62e927ea2 100644 --- a/src/backends/meta-remote-desktop-session.c +++ b/src/backends/meta-remote-desktop-session.c @@ -567,6 +567,13 @@ meta_remote_desktop_session_acquire_mapping_id (MetaRemoteDesktopSession *sessio } } +void +meta_remote_desktop_session_release_mapping_id (MetaRemoteDesktopSession *session, + const char *mapping_id) +{ + g_hash_table_remove (session->mapping_ids, mapping_id); +} + static gboolean check_permission (MetaRemoteDesktopSession *session, GDBusMethodInvocation *invocation) diff --git a/src/backends/meta-remote-desktop-session.h b/src/backends/meta-remote-desktop-session.h index 6555fc310..2c6405a4e 100644 --- a/src/backends/meta-remote-desktop-session.h +++ b/src/backends/meta-remote-desktop-session.h @@ -44,6 +44,9 @@ gboolean meta_remote_desktop_session_register_screen_cast (MetaRemoteDesktopSess const char * meta_remote_desktop_session_acquire_mapping_id (MetaRemoteDesktopSession *session); +void meta_remote_desktop_session_release_mapping_id (MetaRemoteDesktopSession *session, + const char *mapping_id); + void meta_remote_desktop_session_request_transfer (MetaRemoteDesktopSession *session, const char *mime_type, GTask *task);