backends/eis: Add a new API to get the fd from MetaEIS

This is preparation work for supporting ConnectToEIS.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2628>
This commit is contained in:
Olivier Fourdan 2022-09-28 17:52:50 +02:00 committed by Carlos Garnacho
parent a6d406d7bf
commit 812eeddfde
2 changed files with 7 additions and 0 deletions

View File

@ -239,6 +239,12 @@ eis_logger (struct eis *eis,
}
}
int
meta_eis_add_client_get_fd (MetaEis *meta_eis)
{
return eis_backend_fd_add_client (meta_eis->eis);
}
static int
try_and_find_free_eis_socket (MetaEis *meta_eis)
{

View File

@ -34,6 +34,7 @@ G_DECLARE_FINAL_TYPE (MetaEis, meta_eis,
MetaEis * meta_eis_new (MetaBackend *backend);
MetaBackend * meta_eis_get_backend (MetaEis *meta_eis);
int meta_eis_add_client_get_fd (MetaEis *meta_eis);
void meta_eis_remove_all_clients (MetaEis *meta_eis);
#endif /* META_EIS_H */