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>
This commit is contained in:
Chris Michael 2016-05-10 13:49:38 -04:00
parent ba3a91a8b5
commit be763a011c
2 changed files with 19 additions and 0 deletions

View File

@ -285,6 +285,18 @@ EAPI void elput_input_pointer_xy_get(Elput_Manager *manager, const char *seat, i
*/
EAPI void elput_input_pointer_xy_set(Elput_Manager *manager, const char *seat, int x, int y);
/**
* Get the list of devices on a given seat
*
* @param seat
*
* @return An Eina_List of existing Elput_Devices on a given seat or NULL on failure
*
* @ingroup Elput_Input_Group
* @since 1.18
*/
EAPI const Eina_List *elput_input_devices_get(Elput_Seat *seat);
/**
* @defgroup Elput_Device_Group
*

View File

@ -328,3 +328,10 @@ elput_input_pointer_xy_set(Elput_Manager *manager, const char *seat, int x, int
}
}
}
EAPI const Eina_List *
elput_input_devices_get(Elput_Seat *seat)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(seat, NULL);
return seat->devices;
}