struct oeffis * oeffis_new(void *user_data)
Create a new oeffis context.
struct oeffis * oeffis_unref(struct oeffis *oeffis)
Decrease the refcount of this struct by one.
enum oeffis_event_type oeffis_get_event(struct oeffis *oeffis)
Return the next available event, if any.
void oeffis_set_user_data(struct oeffis *oeffis, void *user_data)
Set a custom data pointer for this context.
int oeffis_get_eis_fd(struct oeffis *oeffis)
Get a dup() of the file descriptor.
void oeffis_create_session_on_bus(struct oeffis *oeffis, const char *busname, uint32_t devices)
See oeffis_create_session() but this function allows to specify the busname to connect to.
struct oeffis * oeffis_ref(struct oeffis *oeffis)
Increase the refcount of this struct by one.
int oeffis_get_fd(struct oeffis *oeffis)
liboeffis keeps a single file descriptor for all events.
void oeffis_dispatch(struct oeffis *oeffis)
Process pending events.
const char * oeffis_get_error_message(struct oeffis *oeffis)
If the session was OEFFIS_EVENT_DISCONNECTED, return the error message that caused the disconnection.
oeffis_device
The bitmask of devices to request.
Definition liboeffis.h:145
oeffis_event_type
Definition liboeffis.h:208
void oeffis_create_session(struct oeffis *oeffis, uint32_t devices)
Connect this oeffis instance to a RemoteDesktop session with the given device mask selected.
void * oeffis_get_user_data(struct oeffis *oeffis)
Return the custom data pointer for this context.
@ OEFFIS_DEVICE_POINTER
Definition liboeffis.h:159
@ OEFFIS_DEVICE_ALL_DEVICES
Request all devices.
Definition liboeffis.h:157
@ OEFFIS_DEVICE_TOUCHSCREEN
Definition liboeffis.h:160
@ OEFFIS_DEVICE_KEYBOARD
Definition liboeffis.h:158
@ OEFFIS_EVENT_CLOSED
The session was closed by the compositor or portal.
Definition liboeffis.h:211
@ OEFFIS_EVENT_DISCONNECTED
We were disconnected from the Bus due to an error.
Definition liboeffis.h:212
@ OEFFIS_EVENT_NONE
No event currently available.
Definition liboeffis.h:209
@ OEFFIS_EVENT_CONNECTED_TO_EIS
The RemoteDesktop session was created and an eis fd is available.
Definition liboeffis.h:210
The main context to interact with liboeffis.