mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 12:50:33 +01:00
Document the open/close_restricted interface
Specifically, document that it needs to return a negative errno on failure. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
ed87c6dbb0
commit
ecc8d6c42d
1 changed files with 18 additions and 0 deletions
|
|
@ -399,7 +399,25 @@ libinput_event_touch_touch_get_touch_type(
|
|||
*/
|
||||
|
||||
struct libinput_interface {
|
||||
/**
|
||||
* Open the device at the given path with the flags provided and
|
||||
* return the fd.
|
||||
*
|
||||
* @param path The device path to open
|
||||
* @param flags Flags as defined by open(2)
|
||||
* @param user_data The user_data provided in
|
||||
* libinput_create_from_udev()
|
||||
*
|
||||
* @return the file descriptor, or a negative errno on failure.
|
||||
*/
|
||||
int (*open_restricted)(const char *path, int flags, void *user_data);
|
||||
/**
|
||||
* Close the file descriptor.
|
||||
*
|
||||
* @param fd The file descriptor to close
|
||||
* @param user_data The user_data provided in
|
||||
* libinput_create_from_udev()
|
||||
*/
|
||||
void (*close_restricted)(int fd, void *user_data);
|
||||
|
||||
void (*get_current_screen_dimensions)(struct libinput_device *device,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue