|
libei 1.4.1
A library for Emulated Input
|
The API to query and interact with a struct eis_seat. More...
Functions | |
| struct eis_seat * | eis_seat_ref (struct eis_seat *seat) |
| struct eis_seat * | eis_seat_unref (struct eis_seat *seat) |
| struct eis_client * | eis_seat_get_client (struct eis_seat *eis_seat) |
| const char * | eis_seat_get_name (struct eis_seat *eis_seat) |
| void * | eis_seat_get_user_data (struct eis_seat *eis_seat) |
| void | eis_seat_set_user_data (struct eis_seat *eis_seat, void *user_data) |
| bool | eis_seat_has_capability (struct eis_seat *seat, enum eis_device_capability cap) |
| void | eis_seat_configure_capability (struct eis_seat *seat, enum eis_device_capability cap) |
| Allow a capability on the seat. | |
| void | eis_seat_add (struct eis_seat *seat) |
| Add this seat to its client and notify the client of the seat's availability. | |
| void | eis_seat_remove (struct eis_seat *seat) |
| Remove this seat and all its remaining devices. | |
| struct eis * | eis_seat_get_context (struct eis_seat *seat) |
| struct eis_device * | eis_seat_new_device (struct eis_seat *seat) |
| Create a new device on the seat. | |
The API to query and interact with a struct eis_seat.
| void eis_seat_add | ( | struct eis_seat * | seat | ) |
Add this seat to its client and notify the client of the seat's availability.
This allows the client to create a device within this seat.
| void eis_seat_configure_capability | ( | struct eis_seat * | seat, |
| enum eis_device_capability | cap ) |
Allow a capability on the seat.
This indicates to the client that it may create devices with with the given capabilities, though the EIS implementation may restrict the of capabilities on a device to a subset of those in the seat, see eis_device_allow_capability().
This function must be called before eis_seat_add().
This function has no effect if called after eis_seat_add()
| struct eis_client * eis_seat_get_client | ( | struct eis_seat * | eis_seat | ) |
| const char * eis_seat_get_name | ( | struct eis_seat * | eis_seat | ) |
| void * eis_seat_get_user_data | ( | struct eis_seat * | eis_seat | ) |
| bool eis_seat_has_capability | ( | struct eis_seat * | seat, |
| enum eis_device_capability | cap ) |
| struct eis_device * eis_seat_new_device | ( | struct eis_seat * | seat | ) |
Create a new device on the seat.
This device is not immediately active, use eis_device_add() to notify the client of it's availability.
The returned device is refcounted, use eis_device_unref() to drop the reference.
Before calling eis_device_add(), use the following functions to set up the device:
The device type of the device defaults to EIS_DEVICE_TYPE_VIRTUAL.
| void eis_seat_remove | ( | struct eis_seat * | seat | ) |
Remove this seat and all its remaining devices.
| void eis_seat_set_user_data | ( | struct eis_seat * | eis_seat, |
| void * | user_data ) |