summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/elput/Elput.h12
-rw-r--r--src/lib/elput/elput_manager.c7
2 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/elput/Elput.h b/src/lib/elput/Elput.h
index d38569d344..98d81d7a7f 100644
--- a/src/lib/elput/Elput.h
+++ b/src/lib/elput/Elput.h
@@ -219,6 +219,18 @@ EAPI void elput_manager_close(Elput_Manager *manager, int fd);
219EAPI Eina_Bool elput_manager_vt_set(Elput_Manager *manager, int vt); 219EAPI Eina_Bool elput_manager_vt_set(Elput_Manager *manager, int vt);
220 220
221/** 221/**
222 * Get the list of seats from a manager
223 *
224 * @param manager
225 *
226 * @return An Eina_List of existing Elput_Seats or NULL on failure
227 *
228 * @ingroup Elput_Manager_Group
229 * @since 1.18
230 */
231EAPI const Eina_List *elput_manager_seats_get(Elput_Manager *manager);
232
233/**
222 * @defgroup Elput_Input_Group Elput input functions 234 * @defgroup Elput_Input_Group Elput input functions
223 * 235 *
224 * Functions that deal with setup of inputs 236 * Functions that deal with setup of inputs
diff --git a/src/lib/elput/elput_manager.c b/src/lib/elput/elput_manager.c
index 13db80973f..9145e9c434 100644
--- a/src/lib/elput/elput_manager.c
+++ b/src/lib/elput/elput_manager.c
@@ -112,3 +112,10 @@ elput_manager_vt_set(Elput_Manager *manager, int vt)
112 112
113 return EINA_FALSE; 113 return EINA_FALSE;
114} 114}
115
116EAPI const Eina_List *
117elput_manager_seats_get(Elput_Manager *manager)
118{
119 EINA_SAFETY_ON_NULL_RETURN_VAL(manager, NULL);
120 return manager->input.seats;
121}