backend: Add getter for MetaScreenCast

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1318
This commit is contained in:
Jonas Ådahl 2020-06-17 17:46:25 +02:00 committed by Robert Mader
parent 5171e35a97
commit 60c8d227ea
2 changed files with 13 additions and 0 deletions

View File

@ -136,6 +136,8 @@ MetaEgl * meta_backend_get_egl (MetaBackend *backend);
#ifdef HAVE_REMOTE_DESKTOP
MetaRemoteDesktop * meta_backend_get_remote_desktop (MetaBackend *backend);
MetaScreenCast * meta_backend_get_screen_cast (MetaBackend *backend);
#endif
gboolean meta_backend_grab_device (MetaBackend *backend,

View File

@ -1133,6 +1133,17 @@ meta_backend_get_remote_desktop (MetaBackend *backend)
return priv->remote_desktop;
}
/**
* meta_backend_get_screen_cast: (skip)
*/
MetaScreenCast *
meta_backend_get_screen_cast (MetaBackend *backend)
{
MetaBackendPrivate *priv = meta_backend_get_instance_private (backend);
return priv->screen_cast;
}
#endif /* HAVE_REMOTE_DESKTOP */
/**