From 812eeddfde0ff7a841b7f40a4776de874d2a893a Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Wed, 28 Sep 2022 17:52:50 +0200 Subject: [PATCH] backends/eis: Add a new API to get the fd from MetaEIS This is preparation work for supporting ConnectToEIS. Part-of: --- src/backends/meta-eis.c | 6 ++++++ src/backends/meta-eis.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/backends/meta-eis.c b/src/backends/meta-eis.c index 15c91a1f5..95eae5e2a 100644 --- a/src/backends/meta-eis.c +++ b/src/backends/meta-eis.c @@ -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) { diff --git a/src/backends/meta-eis.h b/src/backends/meta-eis.h index 19c498e3b..16c2f8be4 100644 --- a/src/backends/meta-eis.h +++ b/src/backends/meta-eis.h @@ -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 */