libei  1.2.0
A library for Emulated Input

The API to query and interact with a struct eis_seat. More...

Functions

struct eis_seateis_seat_ref (struct eis_seat *seat)
 
struct eis_seateis_seat_unref (struct eis_seat *seat)
 
struct eis_clienteis_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. More...
 
void eis_seat_add (struct eis_seat *seat)
 Add this seat to its client and notify the client of the seat's availability. More...
 
void eis_seat_remove (struct eis_seat *seat)
 Remove this seat and all its remaining devices. More...
 
struct eiseis_seat_get_context (struct eis_seat *seat)
 
struct eis_deviceeis_seat_new_device (struct eis_seat *seat)
 Create a new device on the seat. More...
 

Detailed Description

The API to query and interact with a struct eis_seat.

Function Documentation

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)
struct eis* eis_seat_get_context ( struct eis_seat 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.

struct eis_seat* eis_seat_ref ( struct eis_seat seat)
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 
)
struct eis_seat* eis_seat_unref ( struct eis_seat seat)