Function input_sys::libinput_udev_assign_seat[][src]

pub unsafe extern "C" fn libinput_udev_assign_seat(
    libinput: *mut libinput,
    seat_id: *const c_char
) -> c_int
Expand description

@ingroup base

Assign a seat to this libinput context. New devices or the removal of existing devices will appear as events during libinput_dispatch().

libinput_udev_assign_seat() succeeds even if no input devices are currently available on this seat, or if devices are available but fail to open in @ref libinput_interface::open_restricted. Devices that do not have the minimum capabilities to be recognized as pointer, keyboard or touch device are ignored. Such devices and those that failed to open ignored until the next call to libinput_resume().

This function may only be called once per context.

@param libinput A libinput context initialized with libinput_udev_create_context() @param seat_id A seat identifier. This string must not be NULL.

@return 0 on success or -1 on failure.