diff options
author | Chris Michael <cpmichael@osg.samsung.com> | 2016-05-10 13:49:38 -0400 |
---|---|---|
committer | Chris Michael <cpmichael@osg.samsung.com> | 2016-05-10 13:49:38 -0400 |
commit | be763a011c4d37edff48d8db99bf234514670cb6 (patch) | |
tree | 1465d14ba0e93edaaa411b25e7d6b2c09ce0498b | |
parent | ba3a91a8b534b1ff9af095d3084a37031f15f974 (diff) |
elput: Add API function to return a list of Elput_Devices on a given
seat
This patch adds a new API function which can be called to retrieve a
list of existing Elput_Devices on a given Elput_Seat.
@feature
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
-rw-r--r-- | src/lib/elput/Elput.h | 12 | ||||
-rw-r--r-- | src/lib/elput/elput_input.c | 7 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/elput/Elput.h b/src/lib/elput/Elput.h index 98d81d7a7f..87d3462466 100644 --- a/src/lib/elput/Elput.h +++ b/src/lib/elput/Elput.h | |||
@@ -286,6 +286,18 @@ EAPI void elput_input_pointer_xy_get(Elput_Manager *manager, const char *seat, i | |||
286 | EAPI void elput_input_pointer_xy_set(Elput_Manager *manager, const char *seat, int x, int y); | 286 | EAPI void elput_input_pointer_xy_set(Elput_Manager *manager, const char *seat, int x, int y); |
287 | 287 | ||
288 | /** | 288 | /** |
289 | * Get the list of devices on a given seat | ||
290 | * | ||
291 | * @param seat | ||
292 | * | ||
293 | * @return An Eina_List of existing Elput_Devices on a given seat or NULL on failure | ||
294 | * | ||
295 | * @ingroup Elput_Input_Group | ||
296 | * @since 1.18 | ||
297 | */ | ||
298 | EAPI const Eina_List *elput_input_devices_get(Elput_Seat *seat); | ||
299 | |||
300 | /** | ||
289 | * @defgroup Elput_Device_Group | 301 | * @defgroup Elput_Device_Group |
290 | * | 302 | * |
291 | * Functions that deal with input devices. | 303 | * Functions that deal with input devices. |
diff --git a/src/lib/elput/elput_input.c b/src/lib/elput/elput_input.c index 8a15694b16..11269dfe07 100644 --- a/src/lib/elput/elput_input.c +++ b/src/lib/elput/elput_input.c | |||
@@ -328,3 +328,10 @@ elput_input_pointer_xy_set(Elput_Manager *manager, const char *seat, int x, int | |||
328 | } | 328 | } |
329 | } | 329 | } |
330 | } | 330 | } |
331 | |||
332 | EAPI const Eina_List * | ||
333 | elput_input_devices_get(Elput_Seat *seat) | ||
334 | { | ||
335 | EINA_SAFETY_ON_NULL_RETURN_VAL(seat, NULL); | ||
336 | return seat->devices; | ||
337 | } | ||